You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Verify config is writable on startup (IDE-130)
- New From Template only requires single click (IDE-191)
- Create new home folder on installation (IDE-192)
- Prevent compilation when circular dependency is detected (IDE-193)
- Open last used device on startup (IDE-190)
- Only check and save files in the current project when building
(IDE-194)
Copy file name to clipboardExpand all lines: src/propelleride/main.cpp
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
#include<QString>
11
11
#include<QtGlobal>
12
12
#include<QDateTime>
13
+
#include<QSettings>
13
14
14
15
#include"logging.h"
15
16
@@ -67,6 +68,14 @@ int main(int argc, char *argv[])
67
68
QCoreApplication::setApplicationVersion("0.0.0");
68
69
#endif
69
70
71
+
QSettings settings;
72
+
if (settings.status() == QSettings::AccessError)
73
+
{
74
+
QMessageBox::critical(0, QObject::tr("Can't open application settings!"), QObject::tr("Unable to open the PropellerIDE settings stored at:\n\n%1\n\nTry deleting the file and restarting PropellerIDE.").arg(settings.fileName()));
75
+
qCCritical(logmain) << "can't access:" << settings.fileName() << ". Is it writable?";
76
+
return1;
77
+
}
78
+
70
79
QString description = QObject::tr("An easy-to-use, cross-platform IDE for the Parallax Propeller");
0 commit comments