forked from qt-creator/qt-creator
Revert "EditorManager: Fix crash when closing an editor upon activation"
Deleting an editor while currentEditorChanged is apparently not a good idea. Use a queued connection instead. This reverts commits243a625961,447c4ed37f,d9602ca550and3103487038. Change-Id: Iccbee25fb77714963faa6f7184d1f5f53ed348a6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
171fd691c3
commit
f47c101b8b
@@ -234,9 +234,11 @@ VcsBaseSubmitEditor::VcsBaseSubmitEditor(const VcsBaseSubmitEditorParameters *pa
|
||||
connect(VcsPlugin::instance(),
|
||||
SIGNAL(settingsChanged(VcsBase::Internal::CommonVcsSettings)),
|
||||
this, SLOT(slotUpdateEditorSettings(VcsBase::Internal::CommonVcsSettings)));
|
||||
// Commit data refresh might lead to closing the editor, so use a queued connection
|
||||
connect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
this, SLOT(slotRefreshCommitData()));
|
||||
connect(Core::ICore::mainWindow(), SIGNAL(windowActivated()), this, SLOT(slotRefreshCommitData()));
|
||||
this, SLOT(slotRefreshCommitData()), Qt::QueuedConnection);
|
||||
connect(Core::ICore::mainWindow(), SIGNAL(windowActivated()),
|
||||
this, SLOT(slotRefreshCommitData()), Qt::QueuedConnection);
|
||||
|
||||
Aggregation::Aggregate *aggregate = new Aggregation::Aggregate;
|
||||
aggregate->add(new Find::BaseTextFind(descriptionEdit));
|
||||
|
||||
Reference in New Issue
Block a user