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
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ void MainWindow::setMainTab(int index) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int MainWindow::getMapViewTab() {
|
int MainWindow::getMapViewTab() {
|
||||||
if (this->getMainTab() != 0 || !this->ui->mapViewTab)
|
if (!this->ui || !this->ui->mapViewTab)
|
||||||
return -1;
|
return -1;
|
||||||
return this->ui->mapViewTab->currentIndex();
|
return this->ui->mapViewTab->currentIndex();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue