From 9e3bff6b7c140023606445f04e20aec9cb613381 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 9 Feb 2015 15:44:53 -0200 Subject: [PATCH] Simplify a bit of code two #ifdef NO_PRINTING one over the other, merged them together. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 4b883c4f9..59dad9b01 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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(©PasteDive, 0, sizeof(copyPasteDive)); memset(&what, 0, sizeof(what));