aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-02-01 08:34:42 -0500
committerKen Moore <ken@ixsystems.com>2017-02-01 08:34:42 -0500
commit689c3ad786642eea9a97bc29272ca0cdd86af748 (patch)
tree4821e6f04bbe135c3a34a62b3117c0a49e15ef27 /src-qt5
parentGet a lot more of Lumina2 working. Now the window embed systems are functiona... (diff)
downloadlumina-689c3ad786642eea9a97bc29272ca0cdd86af748.tar.gz
lumina-689c3ad786642eea9a97bc29272ca0cdd86af748.tar.bz2
lumina-689c3ad786642eea9a97bc29272ca0cdd86af748.zip
Silence a file watcher warning when opening a blank or new file.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
index e8eaa007..a0aff9cc 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.cpp
@@ -83,7 +83,7 @@ void PlainTextEditor::LoadFile(QString filepath){
this->centerCursor(); //scroll until cursor is centered (if possible)
}
hasChanges = false;
- watcher->addPath(filepath);
+ if(QFile::exists(filepath)){ watcher->addPath(filepath); }
emit FileLoaded(this->whatsThis());
}
bgstack15