Skip to content

Commit 60f6259

Browse files
committed
Fix accent-sensitive toggle state desync on database open
EntrySearcher was always initialized with accentSensitive=true (constructor default), ignoring the user's saved config. Due to a signal/multiplexer race in the database open sequence, the config value from the UI toggle never reached the new DatabaseWidget. Now read the config directly at construction time.
1 parent 8e84b86 commit 60f6259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/DatabaseWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ DatabaseWidget::DatabaseWidget(QSharedPointer<Database> db, QWidget* parent)
9393
, m_tagView(new TagView(this))
9494
, m_saveAttempts(0)
9595
, m_remoteSettings(new RemoteSettings(m_db, this))
96-
, m_entrySearcher(new EntrySearcher(false))
96+
, m_entrySearcher(new EntrySearcher(false, false, config()->get(Config::GUI_SearchAccentSensitive).toBool()))
9797
{
9898
Q_ASSERT(m_db);
9999

0 commit comments

Comments
 (0)