fix potential segfault on moveEvent
This commit is contained in:
parent
755e922a93
commit
795336f42c
1 changed files with 1 additions and 1 deletions
|
@ -2710,7 +2710,7 @@ void MainWindow::onMapRulerStatusChanged(const QString &status) {
|
|||
|
||||
void MainWindow::moveEvent(QMoveEvent *event) {
|
||||
QMainWindow::moveEvent(event);
|
||||
if (label_MapRulerStatus->isVisible() && label_MapRulerStatus->parentWidget())
|
||||
if (label_MapRulerStatus && label_MapRulerStatus->isVisible() && label_MapRulerStatus->parentWidget())
|
||||
label_MapRulerStatus->move(label_MapRulerStatus->parentWidget()->mapToGlobal(QPoint(6, 6)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue