logic: Allow project opening in trial mode

* added open project button to start screen in trial mode
* allow ide communication in trial
This commit is contained in:
Eberhard Graether
2017-02-11 17:22:14 +01:00
parent ba984121a2
commit 0eb959bf54
6 changed files with 24 additions and 36 deletions
+2 -5
View File
@@ -29,7 +29,6 @@
#include "utility/file/FileSystem.h"
#include "utility/logging/logging.h"
#include "utility/messaging/type/MessageCodeReference.h"
#include "utility/messaging/type/MessageDispatchWhenLicenseValid.h"
#include "utility/messaging/type/MessageEnteredLicense.h"
#include "utility/messaging/type/MessageFind.h"
#include "utility/messaging/type/MessageInterruptTasks.h"
@@ -420,9 +419,7 @@ void QtMainWindow::openProject()
if (!fileName.isEmpty())
{
MessageDispatchWhenLicenseValid(
std::make_shared<MessageLoadProject>(fileName.toStdString(), false)
).dispatch();
MessageLoadProject(fileName.toStdString(), false).dispatch();
m_windowStack.clearWindows();
}
}
@@ -563,7 +560,7 @@ void QtMainWindow::setupProjectMenu()
menuBar()->addMenu(menu);
m_trialDisabledActions.push_back(menu->addAction(tr("&New Project..."), this, SLOT(newProject()), QKeySequence::New));
m_trialDisabledActions.push_back(menu->addAction(tr("&Open Project..."), this, SLOT(openProject()), QKeySequence::Open));
menu->addAction(tr("&Open Project..."), this, SLOT(openProject()), QKeySequence::Open);
QMenu *recentProjectMenu = new QMenu(tr("Recent Projects"));
menu->addMenu(recentProjectMenu);