Ivan Savenko 10 miesięcy temu
rodzic
commit
274ed05827

+ 0 - 4
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"));

+ 14 - 0
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()

+ 10 - 4
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 <QWidget>
 
@@ -72,5 +80,3 @@ private slots:
 private:
 	Ui::StartGameTab * ui;
 };
-
-#endif // STARTGAMETAB_H