forked from qt-creator/qt-creator
Core: Remove dead store
Change-Id: I3388751d8b68747afbdc75354430be744736b8e7 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c9cc5156e7
commit
0831b0c2ca
@@ -177,7 +177,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
// Pressing the find shortcut while focus is in the tool bar should not change the search text,
|
// Pressing the find shortcut while focus is in the tool bar should not change the search text,
|
||||||
// so register a different find action for the tool bar
|
// so register a different find action for the tool bar
|
||||||
auto localFindAction = new QAction(this);
|
auto localFindAction = new QAction(this);
|
||||||
cmd = ActionManager::registerAction(localFindAction, Constants::FIND_IN_DOCUMENT, findcontext);
|
ActionManager::registerAction(localFindAction, Constants::FIND_IN_DOCUMENT, findcontext);
|
||||||
connect(localFindAction, &QAction::triggered, this, [this]() {
|
connect(localFindAction, &QAction::triggered, this, [this]() {
|
||||||
openFindToolBar(FindToolBar::OpenFlags(UpdateAll & ~UpdateFindText));
|
openFindToolBar(FindToolBar::OpenFlags(UpdateAll & ~UpdateFindText));
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user