mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
39a11d7092
commit
3161114106
4 changed files with 73 additions and 64 deletions
|
@ -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
|
||||
#undef TOOLBOX_PREF_PROFILE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue