summaryrefslogtreecommitdiff
authortille <tille>2002-11-10 21:56:47 (UTC)
committer tille <tille>2002-11-10 21:56:47 (UTC)
commit0e357841ca8ff0f38bdb4ac7c2883ded2c407810 (patch) (side-by-side diff)
treed2283dcdca4e85a8435689291afec45e5c34a5f4
parent727eb9283d10cf61cc7f7a8506124cab9f37f2ed (diff)
downloadopie-0e357841ca8ff0f38bdb4ac7c2883ded2c407810.zip
opie-0e357841ca8ff0f38bdb4ac7c2883ded2c407810.tar.gz
opie-0e357841ca8ff0f38bdb4ac7c2883ded2c407810.tar.bz2
only show popup if visible
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp3
1 files changed, 2 insertions, 1 deletions
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
@@ -177,10 +177,11 @@ void Ntp::ntpFinished(OProcess *p)
if (p->exitStatus()!=0 || !p->normalExit())
{
+ 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 );
+ }
return;