From 51469f8fa2485c3932e9c03fbcd5605ec734cd1c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 23 Nov 2021 11:02:07 +0800 Subject: [PATCH] Store Qt6 table header states under a different key Follow up 22abbc1d41836027a963e7326e9c8cae0c0dd079. PR #15774. --- src/gui/addnewtorrentdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index eae0153be..e565e787b 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -84,10 +84,11 @@ AddNewTorrentDialog::AddNewTorrentDialog(const BitTorrent::AddTorrentParams &inP , m_storeDialogSize(SETTINGS_KEY("DialogSize")) , m_storeDefaultCategory(SETTINGS_KEY("DefaultCategory")) , m_storeRememberLastSavePath(SETTINGS_KEY("RememberLastSavePath")) - , m_storeTreeHeaderState(SETTINGS_KEY("TreeHeaderState")) #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) + , m_storeTreeHeaderState("GUI/Qt6/" SETTINGS_KEY("TreeHeaderState")) , m_storeSplitterState("GUI/Qt6/" SETTINGS_KEY("SplitterState")) #else + , m_storeTreeHeaderState(SETTINGS_KEY("TreeHeaderState")) , m_storeSplitterState(SETTINGS_KEY("SplitterState")) #endif {