Commit 44a92b74 authored by Morten Volden's avatar Morten Volden

Fix annoying assert on Windows. When a new document is created...

Fix annoying assert on Windows. When a new document is created documentcontroller will create path with an empty string. That will cause two asserts pr. new file on windows when compiled in debug mode.
parent 4dd987f5
Pipeline #1214 failed with stage
in 60 minutes
......@@ -138,7 +138,7 @@ static QString generatePathOrUrl(bool onlyPath, bool isLocalFile, const QVector<
// more or less a copy of QtPrivate::QStringList_join
const int size = data.size();
if (size == 0) {
if (size == 0 || data.at(0).isEmpty()) {
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