Skip to content

Commit

Permalink
Fixed note overwriting in special cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Jun 22, 2024
1 parent 76aa3b4 commit eb32448
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
V1.2.1
V1.3.0
---------
* Fixed a nasty bug that could cause note overwriting in special cases.
* Added a workaround for window deactivation on clicking the tray icon under Wayland.
* Added a workaround for on-the-fly style change of Qt6.
* Dropped using of "gio" for opening hyperlinks.
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

10 Jun 2024, V1.2.1
23 Jun 2024, V1.3.0

See "ChangeLog" for changes.
2 changes: 1 addition & 1 deletion feathernotes/fn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5374,7 +5374,7 @@ void FN::readAndApplyConfig (bool startup)
}

openLastFile_ = settings.value ("openLastFile").toBool(); // false by default
if (openLastFile_)
if (startup && openLastFile_)
{
xmlPath_ = settings.value ("lastOpenedFile").toString();
static_cast<FNSingleton*>(qApp)->setLastFile (xmlPath_);
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
int main(int argc, char *argv[])
{
const QString name = "FeatherNotes";
const QString version = "1.2.1";
const QString version = "1.3.0";
const QString option = QString::fromUtf8 (argv[1]);
if (option == "--help" || option == "-h")
{
Expand Down
2 changes: 1 addition & 1 deletion feathernotes/textedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "textedit.h"
#include <QDesktopServices>
#include <QProcess>
//#include <QProcess>
#include <QToolTip>
#include <QTimer>
#include <QTextBlock>
Expand Down

0 comments on commit eb32448

Please sign in to comment.