Skip to content

Commit 1cd6b65

Browse files
committed
Migration: Removed WSJTX View state from config
The WSJTX View is changed to the sortable view. I don't know why, but when the layout is saved, the sort indicator is not displayed when the sortable view is turned on.
1 parent 32cebf6 commit 1cd6b65

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

core/Migration.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ bool Migration::functionMigration(int version)
204204
ret = fillCQITUZStationProfiles();
205205
break;
206206
case 28:
207-
ret = resetCTYLastDate();
207+
ret = resetConfigs();
208208
break;
209209
default:
210210
ret = true;
@@ -628,13 +628,18 @@ bool Migration::fillCQITUZStationProfiles()
628628
return true;
629629
}
630630

631-
bool Migration::resetCTYLastDate()
631+
bool Migration::resetConfigs()
632632
{
633633
FCT_IDENTIFICATION;
634634

635635
// to force redownload CTY file
636636
QSettings settings;
637637
settings.remove("last_cty_update");
638+
639+
// it changes to sortable view.
640+
// I don't know why, but when the layout is saved, the sort indicator
641+
// is not displayed when the sortable view is turned on. So I rather remove the view state
642+
settings.remove("wsjtx/state");
638643
return true;
639644
}
640645

core/Migration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Migration : public QObject
3838
bool createTriggers();
3939
bool importQSLCards2DB();
4040
bool fillCQITUZStationProfiles();
41-
bool resetCTYLastDate();
41+
bool resetConfigs();
4242
QString fixIntlField(QSqlQuery &query, const QString &columName, const QString &columnNameIntl);
4343
bool refreshUploadStatusTrigger();
4444

0 commit comments

Comments
 (0)