summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
Diffstat (limited to 'kio')
-rw-r--r--kio/kio/krun.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/kio/kio/krun.cpp b/kio/kio/krun.cpp
index 49c748fc4..9d879c858 100644
--- a/kio/kio/krun.cpp
+++ b/kio/kio/krun.cpp
@@ -920,6 +920,9 @@ void KRun::init ( const KURL& url, TQWidget* window, const TQCString& asn, mode_
void KRun::init()
{
kdDebug(7010) << "INIT called" << endl;
+
+ bool bypassErrorMessage = false;
+
if (m_strURL.url().startsWith("$(")) {
// check for environment variables and make necessary translations
TQString aValue = m_strURL.url();
@@ -982,13 +985,16 @@ void KRun::init()
nDollarPos = aValue.find( '$', nDollarPos );
}
m_strURL = KURL(aValue);
+ bypassErrorMessage = true;
}
if ( !m_strURL.isValid() )
{
- d->m_showingError = true;
- KMessageBoxWrapper::error( d->m_window, i18n( "Malformed URL\n%1" ).arg( m_strURL.url() ) );
- d->m_showingError = false;
+ if (bypassErrorMessage == false) {
+ d->m_showingError = true;
+ KMessageBoxWrapper::error( d->m_window, i18n( "Malformed URL\n%1" ).arg( m_strURL.url() ) );
+ d->m_showingError = false;
+ }
m_bFault = true;
m_bFinished = true;
m_timer.start( 0, true );