mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Simplify a bit of code
two #ifdef NO_PRINTING one over the other, merged them together. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38aab70555
commit
9e3bff6b7c
1 changed files with 1 additions and 3 deletions
|
@ -81,6 +81,7 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
connect(ui.menu_Edit, SIGNAL(aboutToShow()), this, SLOT(checkForUndoAndRedo()));
|
connect(ui.menu_Edit, SIGNAL(aboutToShow()), this, SLOT(checkForUndoAndRedo()));
|
||||||
#ifdef NO_PRINTING
|
#ifdef NO_PRINTING
|
||||||
ui.printPlan->hide();
|
ui.printPlan->hide();
|
||||||
|
ui.menuFile->removeAction(ui.actionPrint);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui.mainErrorMessage->hide();
|
ui.mainErrorMessage->hide();
|
||||||
|
@ -103,9 +104,6 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
#endif
|
#endif
|
||||||
#ifdef NO_USERMANUAL
|
#ifdef NO_USERMANUAL
|
||||||
ui.menuHelp->removeAction(ui.actionUserManual);
|
ui.menuHelp->removeAction(ui.actionUserManual);
|
||||||
#endif
|
|
||||||
#ifdef NO_PRINTING
|
|
||||||
ui.menuFile->removeAction(ui.actionPrint);
|
|
||||||
#endif
|
#endif
|
||||||
memset(©PasteDive, 0, sizeof(copyPasteDive));
|
memset(©PasteDive, 0, sizeof(copyPasteDive));
|
||||||
memset(&what, 0, sizeof(what));
|
memset(&what, 0, sizeof(what));
|
||||||
|
|
Loading…
Reference in a new issue