From 2b62e01d0fc891352c427fc2ebc3532c9cc4df7c Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 24 Sep 2010 06:14:05 +0000 Subject: Fix minor UI irritant git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1178866 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/kio/krun.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'kio') 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 ); -- cgit v1.2.1