Remove NO_USERSURVEY

Back in 71dbcdc0d6 ("Added the option of opening User Survey form
explicitly") a define for not adding the user-survey was created.

This is quite unnecessary and this removes that option.

Based-on-patch-by: Nikhil Bharadwaj Gosala <nikhil.gosala@gmail.com>
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-12-30 16:37:02 +01:00 committed by Dirk Hohndel
parent 04ac309725
commit fc63dd90cd

View file

@ -55,9 +55,6 @@
#ifndef NO_USERMANUAL
#include "usermanual.h"
#endif
#ifndef NO_USERSURVEY
#include "usersurvey.h"
#endif
#include <QNetworkProxy>
MainWindow *MainWindow::m_Instance = NULL;
@ -121,10 +118,6 @@ MainWindow::MainWindow() : QMainWindow(),
#ifdef NO_USERMANUAL
ui.menuHelp->removeAction(ui.actionUserManual);
#endif
#ifdef NO_USERSURVEY
ui.menuHelp->removeAction(ui.actionUserSurvey);
#endif
#ifdef NO_PRINTING
ui.menuFile->removeAction(ui.actionPrint);
#endif
@ -754,12 +747,10 @@ void MainWindow::on_actionUserManual_triggered()
void MainWindow::on_actionUserSurvey_triggered()
{
#ifndef NO_USERSURVEY
if(!survey) {
survey = new UserSurvey();
}
survey->show();
#endif
}
QString MainWindow::filter()
@ -964,14 +955,10 @@ void MainWindow::closeEvent(QCloseEvent *event)
}
#endif
#ifndef NO_USERSURVEY
if (survey && survey->isVisible()) {
survey->close();
survey->deleteLater();
}
#endif
if (unsaved_changes() && (askSaveChanges() == false)) {
event->ignore();