mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-24 06:48:08 -05:00
Allow getting the map view tab index even if a different main tab is currently opened
This commit is contained in:
parent
e070a5a1b2
commit
a143d2892e
|
|
@ -1020,7 +1020,7 @@ void MainWindow::setMainTab(int index) {
|
|||
}
|
||||
|
||||
int MainWindow::getMapViewTab() {
|
||||
if (this->getMainTab() != 0 || !this->ui->mapViewTab)
|
||||
if (!this->ui || !this->ui->mapViewTab)
|
||||
return -1;
|
||||
return this->ui->mapViewTab->currentIndex();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user