Fix issue with working directory.
This commit is contained in:
committed by
Yorik van Havre
parent
831fbe7ee7
commit
ed671ef65e
@@ -386,7 +386,7 @@ void FileDialog::setWorkingDirectory(const QString& dir)
|
||||
QString dirName = dir;
|
||||
if (!dir.isEmpty()) {
|
||||
QFileInfo info(dir);
|
||||
if (info.isFile())
|
||||
if (!info.exists() || info.isFile())
|
||||
dirName = info.absolutePath();
|
||||
else
|
||||
dirName = info.absoluteFilePath();
|
||||
|
||||
Reference in New Issue
Block a user