fix main tab icon initialization
This commit is contained in:
parent
b622bec2be
commit
7bfb064e80
2 changed files with 17 additions and 16 deletions
|
@ -1247,6 +1247,7 @@ void Editor::unsetMap() {
|
|||
for (auto connection : map->getConnections())
|
||||
disconnectMapConnection(connection);
|
||||
}
|
||||
clearMapConnections();
|
||||
|
||||
this->map = nullptr;
|
||||
}
|
||||
|
|
|
@ -220,6 +220,7 @@ void MainWindow::applyUserShortcuts() {
|
|||
shortcut->setKeys(shortcutsConfig.userShortcuts(shortcut));
|
||||
}
|
||||
|
||||
void MainWindow::initCustomUI() {
|
||||
static const QMap<int, QString> mainTabNames = {
|
||||
{MainTab::Map, "Map"},
|
||||
{MainTab::Events, "Events"},
|
||||
|
@ -236,7 +237,6 @@ static const QMap<int, QIcon> mainTabIcons = {
|
|||
{MainTab::WildPokemon, QIcon(QStringLiteral(":/icons/tall_grass.ico"))},
|
||||
};
|
||||
|
||||
void MainWindow::initCustomUI() {
|
||||
// Set up the tab bar
|
||||
while (ui->mainTabBar->count()) ui->mainTabBar->removeTab(0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue