--- a/src/mainwindow.cpp Sun Aug 30 15:01:10 2015 +0300 +++ b/src/mainwindow.cpp Sun Aug 30 15:17:28 2015 +0300 @@ -772,7 +772,7 @@ if (not doc->fullPath().isEmpty()) name = doc->fullPath(); - elif (not doc->name().isEmpty()) + else if (not doc->name().isEmpty()) name = doc->name(); name.replace ("\\", "/");