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())); 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(&copyPasteDive, 0, sizeof(copyPasteDive)); memset(&copyPasteDive, 0, sizeof(copyPasteDive));
memset(&what, 0, sizeof(what)); memset(&what, 0, sizeof(what));