aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/desktop-plugins')
-rw-r--r--lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp b/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
index 8e4121b8..435a57c2 100644
--- a/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
@@ -152,6 +152,7 @@ QString NotePadPlugin::newNoteName(QString oldname, bool tryagain){
if(name.isEmpty() || dlg.result()!=QDialog::Accepted){ return ""; } //cancelled
//Check validity of the new note filename
QString fullpath = QDir::homePath()+"/Notes/"+name;
+ if(!fullpath.endsWith(".note")){ fullpath.append(".note"); }
if(QFile::exists(fullpath)){
return newNoteName(name, true); //try again
}
bgstack15