-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- Open 3 tabs: empty, a file, empty (the file must belong to a project)
- Move to the 3rd tab (the empty file)
- Click the menu of the send tab, and close it
Code crashes here:
auto watcher = new QFutureWatcher<CommandArgs>(menu);
connect(watcher, &QFutureWatcher<CommandArgs>::finished, this, [=, this]() {
followSymbolMenu->removeAction(loadingAction);
delete loadingAction;
auto res = watcher->result(); // <- here
auto pluginManager = dynamic_cast<PluginManager *>(mdiServer->mdiHost);
createSubFollowSymbolSubmenu(res, followSymbolMenu, pluginManager);
});
Two cascading problems:
- A menu is triggered for when clicking the right mouse button of the tabs. This opens the popup for the qmdiClient, and then the menu of the tab content itself. (another bug)
- We request completions for the current word
- When it arrives, it is no longer valid, and we deference a pointer
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working