|
@@ -120,6 +120,10 @@ MainWindow::MainWindow(QWidget* parent) :
|
|
|
ui(new Ui::MainWindow),
|
|
ui(new Ui::MainWindow),
|
|
|
controller(this)
|
|
controller(this)
|
|
|
{
|
|
{
|
|
|
|
|
+ for(auto & string : VCMIDirs::get().dataPaths())
|
|
|
|
|
+ QDir::addSearchPath("icons", pathToQString(string / "mapeditor" / "icons"));
|
|
|
|
|
+ QDir::addSearchPath("icons", pathToQString(VCMIDirs::get().userDataPath() / "mapeditor" / "icons"));
|
|
|
|
|
+
|
|
|
ui->setupUi(this);
|
|
ui->setupUi(this);
|
|
|
loadUserSettings(); //For example window size
|
|
loadUserSettings(); //For example window size
|
|
|
setTitle();
|
|
setTitle();
|