Commit e41691fa authored by Ivan Yossi's avatar Ivan Yossi 👌
Browse files

Do not try to open fileLayer if path does not exist

Upon loading file location of fileLayers can be skipped, but
there is no state in the fileLayer to signal this. Pressing
folder icon assumes the file exists causing a crash.

We only prevent trying to open the file but we give no feedback
to the user.
parent 4ada2d37
Pipeline #80335 skipped with stage
......@@ -160,7 +160,7 @@ void KisFileLayer::openFile() const
fileAlreadyOpen = true;
if (!fileAlreadyOpen) {
if (!fileAlreadyOpen && QFile::exists(QFileInfo(path()).absoluteFilePath())) {
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