diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 15:55:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 15:55:49 +0200 |
commit | e64dcd12bd0308d389c0dec6cf2d957e38b3d0f1 (patch) | |
tree | 034e933dc61b191a051a6110125bc1ef20869b10 /profile-widget | |
parent | 752d9b60c459c51fd5014d91a9e03c84a8f18f38 (diff) | |
download | subsurface-e64dcd12bd0308d389c0dec6cf2d957e38b3d0f1.tar.gz |
desktop UI: no longer attempt to manually show error notifications
report_error() now does this automatically. So all these odd places in which we tried
to make sure that we show errors are no longer needed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 3 | ||||
-rw-r--r-- | profile-widget/profilewidget2.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index a7ac87d77..cfe705f6f 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -709,7 +709,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) #ifdef SUBSURFACE_MOBILE if (currentdc->divemode == CCR) { - gasYAxis->setPos(itemPos.partialPressure.pos.on); + gasYAxis->setPos(itemPos.partialPressure.pos.on); gasYAxis->setLine(itemPos.partialPressure.expanded); tankItem->setVisible(false); @@ -802,7 +802,6 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) report_error(qPrintable(tr("Show NDL / TTS was disabled because of excessive processing time"))); } #endif - emit showError(); } void ProfileWidget2::recalcCeiling() diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 9c4a82f5c..3d6bb7e2c 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -90,7 +90,6 @@ public: signals: void fontPrintScaleChanged(double scale); void enableToolbar(bool enable); - void showError(); void enableShortcuts(); void disableShortcuts(bool paste); void refreshDisplay(bool recreateDivelist); |