mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change the references to ShowError to the new notification object.
Showing an Error message is better called from the Notification Object, So for consistency old references to showError is replaced by calling the notification object. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
59ab849854
commit
f61b59d961
4 changed files with 7 additions and 13 deletions
|
@ -650,7 +650,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
// so if we are calculation TTS / NDL then let's force that off.
|
||||
if (measureDuration.elapsed() > 1000 && prefs.calcndltts) {
|
||||
MainWindow::instance()->turnOffNdlTts();
|
||||
MainWindow::instance()->showError(tr("Show NDL / TTS was disabled because of excessive processing time"));
|
||||
MainWindow::instance()->getNotificationWidget()->showNotification(tr("Show NDL / TTS was disabled because of excessive processing time"), KMessageWidget::Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue