diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-24 06:14:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-24 06:14:05 +0000 |
commit | 2b62e01d0fc891352c427fc2ebc3532c9cc4df7c (patch) | |
tree | abaffe3fcc3acb371cd9636d985856b26b419990 /kio | |
parent | d2217557fe3f73a68aacd24f3c72a6193376d921 (diff) | |
download | tdelibs-2b62e01d0fc891352c427fc2ebc3532c9cc4df7c.tar.gz tdelibs-2b62e01d0fc891352c427fc2ebc3532c9cc4df7c.zip |
Fix minor UI irritant
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1178866 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio')
-rw-r--r-- | kio/kio/krun.cpp | 12 |
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 ); |