aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-08 08:50:39 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 08:00:27 -0800
commit31611141067d1876a3b1ee2d8bafd64839c476d3 (patch)
tree51dfb36d2518cc774c5010ef1bbdee05e17c5786 /qt-ui/mainwindow.cpp
parent39a11d70923940f45b5e1493dabfa934ec2a79c6 (diff)
downloadsubsurface-31611141067d1876a3b1ee2d8bafd64839c476d3.tar.gz
SubsurfaceAbout class cleanup.
Main change is that now SubsurfaceAbout doesn't have instance object, but it constructs and destructs dynamically. * Remove the static SubsurfaceAbout::instance() class member * construct/destruct about dialog on demand * Other small aboutbox cleanups. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> ACK-ed-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 6d7123a05..73191dacf 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -503,7 +503,9 @@ void MainWindow::on_actionInputPlan_triggered()
void MainWindow::on_actionAboutSubsurface_triggered()
{
- SubsurfaceAbout::instance()->show();
+ SubsurfaceAbout dlg(this);
+
+ dlg.exec();
}
void MainWindow::on_actionUserManual_triggered()
@@ -900,4 +902,4 @@ void MainWindow::on_profSAC_clicked(bool triggered)
TOOLBOX_PREF_PROFILE(show_sac);
}
-#undef TOOLBOX_PREF_PROFILE \ No newline at end of file
+#undef TOOLBOX_PREF_PROFILE