mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Always set TabSupervisor as parent in Tab subclasses (#5449)
* refactor closeTab * always set tab parent to tabSupervisor * set tabSupervisor parent * use close instead of deleteLater * be more clear about overloads
This commit is contained in:
parent
3a4ec1062b
commit
a6fc88c79a
18 changed files with 25 additions and 41 deletions
|
|
@ -698,8 +698,7 @@ void TabDeckEditor::loadLayout()
|
|||
QTimer::singleShot(100, this, SLOT(freeDocksSize()));
|
||||
}
|
||||
|
||||
TabDeckEditor::TabDeckEditor(TabSupervisor *_tabSupervisor, QWidget *parent)
|
||||
: Tab(_tabSupervisor, parent), modified(false)
|
||||
TabDeckEditor::TabDeckEditor(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor), modified(false)
|
||||
{
|
||||
setObjectName("TabDeckEditor");
|
||||
|
||||
|
|
@ -982,7 +981,7 @@ void TabDeckEditor::closeRequest(bool forced)
|
|||
}
|
||||
|
||||
emit deckEditorClosing(this);
|
||||
deleteLater();
|
||||
close();
|
||||
}
|
||||
|
||||
void TabDeckEditor::actNewDeck()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue