diff options
author | John Thacker <johnthacker@gmail.com> | 2024-02-09 06:49:20 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2024-02-10 17:10:39 +0000 |
commit | f2fae54a581c1fbcca8dc07a265e1d29e5f4a9e9 (patch) | |
tree | b5fd465f09a9f90618933ddeccc57439019909a1 /ui/qt | |
parent | 07b8a533619bdcdbb0e50ff969ed1608d3a4c805 (diff) |
recent: Don't use format info at all
We don't need to read or use the column format string in
the recent settings column width info, because now they're
in sync with the indices used in prefs.col_list.
Continue to write it when writing out the recent settings for
backwards compatibility with older version.
We can also remove the workaround for #14177 from
commit c62dadd31f859a60b970f699992a5ddba837a42c as it's
not needed.
This solves the width and alignment part of #15529. Hidden
states are still to do.
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/column_editor_frame.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/qt/column_editor_frame.cpp b/ui/qt/column_editor_frame.cpp index ea527b9a87..cbe658138f 100644 --- a/ui/qt/column_editor_frame.cpp +++ b/ui/qt/column_editor_frame.cpp @@ -146,12 +146,8 @@ void ColumnEditorFrame::on_buttonBox_accepted() set_column_title(cur_column_, col_str.constData()); set_column_format(cur_column_, ui->typeComboBox->currentIndex()); if (ui->typeComboBox->currentIndex() == COL_CUSTOM) { - gint width = recent_get_column_width(cur_column_); - gchar xalign = recent_get_column_xalign(cur_column_); col_str = ui->fieldsNameLineEdit->text().toUtf8(); set_column_custom_fields(cur_column_, col_str.constData()); - recent_set_column_width(cur_column_, width); - recent_set_column_xalign(cur_column_, xalign); if (!ui->occurrenceLineEdit->text().isEmpty()) { set_column_custom_occurrence(cur_column_, ui->occurrenceLineEdit->text().toInt()); } |