Changeset View
Changeset View
Standalone View
Standalone View
src/kmainwindow.cpp
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Line(s) | 517 | if (d->settingsTimer && d->settingsTimer->isActive()) { | |||
---|---|---|---|---|---|
519 | saveAutoSaveSettings(); | 519 | saveAutoSaveSettings(); | ||
520 | } | 520 | } | ||
521 | if (d->sizeTimer && d->sizeTimer->isActive()) { | 521 | if (d->sizeTimer && d->sizeTimer->isActive()) { | ||
522 | d->sizeTimer->stop(); | 522 | d->sizeTimer->stop(); | ||
523 | d->_k_slotSaveAutoSaveSize(); | 523 | d->_k_slotSaveAutoSaveSize(); | ||
524 | } | 524 | } | ||
525 | 525 | | |||
526 | if (queryClose()) { | 526 | if (queryClose()) { | ||
527 | // widgets will start destroying themselves at this point and we don't | ||||
528 | // want to save state anymore after this as it might be incorrect | ||||
529 | d->autoSaveSettings = false; | ||||
530 | d->letDirtySettings = false; | ||||
531 | | ||||
527 | e->accept(); | 532 | e->accept(); | ||
528 | } else { | 533 | } else { | ||
529 | e->ignore(); //if the window should not be closed, don't close it | 534 | e->ignore(); //if the window should not be closed, don't close it | ||
530 | } | 535 | } | ||
531 | } | 536 | } | ||
532 | 537 | | |||
533 | bool KMainWindow::queryClose() | 538 | bool KMainWindow::queryClose() | ||
534 | { | 539 | { | ||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |