X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fdaemon%2Fcalllistener.cpp;h=43073475d9af934095ff3af58ca785baeff97c22;hp=6c25bfc758bd7ef361b31eb1fc3a8b60a1460237;hb=28a07e35293ce3ee730b72de527e9d145fa47129;hpb=9127dc5e47aee7fa6659f45ae60a9394612f27b1 diff --git a/src/daemon/calllistener.cpp b/src/daemon/calllistener.cpp index 6c25bfc..4307347 100644 --- a/src/daemon/calllistener.cpp +++ b/src/daemon/calllistener.cpp @@ -374,7 +374,7 @@ bool CallListener::handleConnection() if(configType == Settings::ALWAYS_ASK) { - showError(tr("Automatic connecting is not allowed by settings.")); + showError(tr("Automatic connecting is not allowed by settings."), BANNER_DELAY); return false; } @@ -460,11 +460,19 @@ bool CallListener::handleConnection() return initialized_; } -void CallListener::showError(QString const& msg) +void CallListener::showError(QString const& msg, int timeout) { qDebug() << "Error: " << msg; box_->setTimeout(ERROR_BANNER_TIMEOUT); - showResult(msg); + + if(timeout) + { + showDelayedResult(msg, timeout); + } + else + { + showResult(msg); + } } void CallListener::timerEvent(QTimerEvent* event)