Fix minor UI irritant

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1178866 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent d2217557fe
commit 2b62e01d0f

@ -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 );

Loading…
Cancel
Save