Commit 6cb024e1 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Another win32 compile fix.

Related commit is 5bcb5337.
CCMAIL: okellogg@users.sourceforge.net
parent e87ab44c
......@@ -106,16 +106,16 @@ QString LayoutGenerator::currentDotPath()
}
#ifdef Q_OS_WIN
// search for dot installation
QString appDir(qgetenv("ProgramFiles"));
QString appDir(QLatin1String(qgetenv("ProgramFiles").constData()));
QDir dir(appDir);
dir.setFilter(QDir::Dirs);
dir.setNameFilters(QStringList() << "Graphviz*");
dir.setNameFilters(QStringList() << QLatin1String("Graphviz*"));
dir.setSorting(QDir::Reversed);
QFileInfoList list = dir.entryInfoList();
if (list.size() > 0) {
QString dotPath = list.at(0).absoluteFilePath();
QString exePath = QFile::exists(dotPath + "\\bin") ? dotPath + "\\bin" : dotPath;
return QFile::exists(exePath + "\\dot.exe") ? exePath : QString();
QString exePath = QFile::exists(dotPath + QLatin1String("\\bin")) ? dotPath + QLatin1String("\\bin") : dotPath;
return QFile::exists(exePath + QLatin1String("\\dot.exe")) ? exePath : QString();
}
#endif
return QString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment