summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp7
1 files changed, 4 insertions, 3 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())
{
- 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;