Changeset 383:6af42e472239 in SMSSender


Ignore:
Timestamp:
Apr 16, 2014 11:10:59 AM (4 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Fixes bug in IClosePreventableDialog to close the dialog when it was requested before and the last allowClose call is made.
  • Fixes uninitialized member in IClosePreventableDialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/gui/ui/iclosepreventabledialog.cpp

    r382 r383  
    2323    : QDialog(parent)
    2424    , m_preventCount(0)
     25    , m_closeRequested(false)
    2526{
    2627}
     
    3031}
    3132void IClosePreventableDialog::allowClose() {
     33    Q_ASSERT(m_preventCount > 0);
     34
     35    --m_preventCount;
     36
    3237    if (m_preventCount == 0) {
    3338        if (m_closeRequested) {
     
    3641        return;
    3742    }
    38 
    39     --m_preventCount;
    4043}
    4144
Note: See TracChangeset for help on using the changeset viewer.