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:
Tomaz Canabrava 2015-02-09 15:44:53 -02:00 committed by Dirk Hohndel
parent 38aab70555
commit 9e3bff6b7c

View file

@ -81,6 +81,7 @@ MainWindow::MainWindow() : QMainWindow(),
connect(ui.menu_Edit, SIGNAL(aboutToShow()), this, SLOT(checkForUndoAndRedo()));
#ifdef NO_PRINTING
ui.printPlan->hide();
ui.menuFile->removeAction(ui.actionPrint);
#endif
ui.mainErrorMessage->hide();
@ -103,9 +104,6 @@ MainWindow::MainWindow() : QMainWindow(),
#endif
#ifdef NO_USERMANUAL
ui.menuHelp->removeAction(ui.actionUserManual);
#endif
#ifdef NO_PRINTING
ui.menuFile->removeAction(ui.actionPrint);
#endif
memset(&copyPasteDive, 0, sizeof(copyPasteDive));
memset(&what, 0, sizeof(what));