Fix an error with ScreenAreaSelector region saving
This commit is contained in:
parent
3790be68c5
commit
3768ce2f51
@ -47,6 +47,6 @@ void ScreenAreaSelector::resizeEvent(QResizeEvent *) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ScreenAreaSelector::closeEvent(QCloseEvent *) {
|
void ScreenAreaSelector::closeEvent(QCloseEvent *) {
|
||||||
QRect r = QRect(pos(), rect().size());
|
QRect r = QRect(mapToGlobal(QPoint(0, 0)), rect().size());
|
||||||
settings::settings().setValue("screenareaselector/rect", r);
|
settings::settings().setValue("screenareaselector/rect", r);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user