diff --git a/launcher/mainwindow_moc.cpp b/launcher/mainwindow_moc.cpp index 49b2b8698..47c796903 100644 --- a/launcher/mainwindow_moc.cpp +++ b/launcher/mainwindow_moc.cpp @@ -99,10 +99,6 @@ MainWindow::MainWindow(QWidget * parent) } #endif -#ifndef ENABLE_EDITOR - ui->startEditorButton->hide(); -#endif - computeSidePanelSizes(); bool h3DataFound = CResourceHandler::get()->existsResource(ResourcePath("DATA/GENRLTXT.TXT")); diff --git a/launcher/startGame/StartGameTab.cpp b/launcher/startGame/StartGameTab.cpp index c3dbc0074..96e1395c8 100644 --- a/launcher/startGame/StartGameTab.cpp +++ b/launcher/startGame/StartGameTab.cpp @@ -1,3 +1,13 @@ +/* + * StartGameTab.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ +#include "StdInc.h" #include "StartGameTab.h" #include "ui_StartGameTab.h" @@ -25,6 +35,10 @@ StartGameTab::StartGameTab(QWidget * parent) ui->buttonGameResume->setVisible(false); // TODO: implement ui->buttonPresetExport->setVisible(false); // TODO: implement ui->buttonPresetImport->setVisible(false); // TODO: implement + +#ifndef ENABLE_EDITOR + ui->buttonGameEditor->hide(); +#endif } StartGameTab::~StartGameTab() diff --git a/launcher/startGame/StartGameTab.h b/launcher/startGame/StartGameTab.h index 3503f726c..9768600dc 100644 --- a/launcher/startGame/StartGameTab.h +++ b/launcher/startGame/StartGameTab.h @@ -1,5 +1,13 @@ -#ifndef STARTGAMETAB_H -#define STARTGAMETAB_H +/* + * StartGameTab.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ +#pragma once #include @@ -72,5 +80,3 @@ private slots: private: Ui::StartGameTab * ui; }; - -#endif // STARTGAMETAB_H