From 0e357841ca8ff0f38bdb4ac7c2883ded2c407810 Mon Sep 17 00:00:00 2001 From: tille Date: Sun, 10 Nov 2002 21:56:47 +0000 Subject: only show popup if visible --- (limited to 'noncore/settings/netsystemtime') diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 111f7d4..6e74e32 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp @@ -176,12 +176,13 @@ void Ntp::ntpFinished(OProcess *p) qDebug("p->exitStatus() %i",p->exitStatus()); if (p->exitStatus()!=0 || !p->normalExit()) { - QMessageBox::critical(this, tr("ntp error"), + if ( isVisible() ) { + QMessageBox::critical(this, tr("ntp error"), tr("Error while getting time form\n server")+ getNtpServer()+"\n"+ _ntpOutput ); - // TabWidgetMain->setCurrentPage( 1 ); - TabWidgetMain->showPage( tabManualSetTime ); + TabWidgetMain->showPage( tabManualSetTime ); + } return; } -- cgit v0.9.0.2