Skip to content

Commit

Permalink
Settings: Check and fix missing environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
malcom2073 committed Jul 28, 2014
1 parent 00e02d4 commit f7eb0fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
//TODO: Figure out proper directory names
#ifdef Q_OS_WIN
QString appDataDir = getenv("%AppData%");
if (appDataDir == "")
{
appDataDir = getenv("%UserProfile%");
}
appDataDir = appDataDir.replace("\\","/");
if (!QDir(appDataDir).exists("EMStudio"))
{
Expand Down

0 comments on commit f7eb0fa

Please sign in to comment.