From ab6f5290fc1582cf89257e6e5d12ec33ed428143 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 27 Dec 2018 16:27:25 +0100 Subject: Bookmarks: track modified state in the model rather than the widget Dragging and dropping bookmarks is done by the QTreeView rather than through the BookmarksWidget, so the widget could not track modification state correctly when items were reordered. BUG: #9 Bookmark reordering does not persist --- lib/bookmarks/bookmarkswidget.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/bookmarks/bookmarkswidget.h') diff --git a/lib/bookmarks/bookmarkswidget.h b/lib/bookmarks/bookmarkswidget.h index e293f65..f30db7d 100644 --- a/lib/bookmarks/bookmarkswidget.h +++ b/lib/bookmarks/bookmarkswidget.h @@ -43,10 +43,8 @@ public slots: private: Ui::BookmarksDialog *ui; - bool m_isChanged = false; QString m_bookmarksPath; BookmarkModel *model; - }; #endif // BOOKMARKSDIALOG_H -- cgit v1.2.1