forked from qt-creator/qt-creator
VcsBaseSubmitEditor: Remove queued connection
Those should no longer be necessary and some people report warnings about queueing Qt::ApplicationState when doing commits in creator. Change-Id: I7bf1be57b8a92212ef677d1a608c0f22d20cab8b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3a7a1c2164
commit
86b5b5c2f3
@@ -236,17 +236,16 @@ VcsBaseSubmitEditor::VcsBaseSubmitEditor(const VcsBaseSubmitEditorParameters *pa
|
||||
slotUpdateEditorSettings(settings);
|
||||
connect(VcsPlugin::instance(), &VcsPlugin::settingsChanged,
|
||||
this, &VcsBaseSubmitEditor::slotUpdateEditorSettings);
|
||||
// Commit data refresh might lead to closing the editor, so use a queued connection
|
||||
connect(Core::EditorManager::instance(), &Core::EditorManager::currentEditorChanged,
|
||||
this, [this]() {
|
||||
if (Core::EditorManager::currentEditor() == this)
|
||||
updateFileModel();
|
||||
}, Qt::QueuedConnection);
|
||||
});
|
||||
connect(qApp, &QApplication::applicationStateChanged,
|
||||
this, [this](Qt::ApplicationState state) {
|
||||
if (state == Qt::ApplicationActive)
|
||||
updateFileModel();
|
||||
}, Qt::QueuedConnection);
|
||||
});
|
||||
|
||||
auto aggregate = new Aggregation::Aggregate;
|
||||
aggregate->add(new Core::BaseTextFind(descriptionEdit));
|
||||
|
Reference in New Issue
Block a user