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