mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-25 23:37:52 -05:00
fix potential segfault on moveEvent
This commit is contained in:
parent
755e922a93
commit
795336f42c
|
|
@ -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 New Issue
Block a user