Changeset 65600 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 3, 2017 1:34:25 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r64159 r65600 64 64 , m_pSerializeProcess(0) 65 65 , m_fSerializationIsInProgress(false) 66 , m_fSerializationClean(true) 66 67 /* Status-bar stuff: */ 67 68 , m_pStatusBar(0) … … 177 178 saveOwnData(); 178 179 179 /* Call to base-class: */ 180 QIWithRetranslateUI<QIMainDialog>::accept(); 180 /* If serialization was clean: */ 181 if (m_fSerializationClean) 182 { 183 /* Call to base-class: */ 184 QIWithRetranslateUI<QIMainDialog>::accept(); 185 } 181 186 } 182 187 … … 332 337 if (pDlgSerializeProgress) 333 338 { 339 /* Remember whether the serialization was clean: */ 340 m_fSerializationClean = pDlgSerializeProgress->isClean(); 341 334 342 /* Upload 'settings saver' data: */ 335 343 data = pDlgSerializeProgress->data(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h
r63978 r65600 147 147 /** Holds whether the serialization is in progress. */ 148 148 bool m_fSerializationIsInProgress; 149 /** Holds whether there were no serialization errors. */ 150 bool m_fSerializationClean; 149 151 150 152 /* Status bar widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp
r62493 r65600 204 204 , m_pLabelSubOperationProgress(0) 205 205 , m_pBarSubOperationProgress(0) 206 , m_fClean(true) 206 207 { 207 208 /* Prepare: */ … … 383 384 void UISettingsSerializerProgress::sltHandleOperationProgressError(QString strErrorInfo) 384 385 { 386 /* Mark the serialization process dirty: */ 387 m_fClean = false; 388 385 389 /* Show the error message: */ 386 390 msgCenter().cannotSaveSettings(strErrorInfo, this); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h
r62493 r65600 166 166 QVariant& data(); 167 167 168 /** Returns whether there were no errors. */ 169 bool isClean() const { return m_fClean; } 170 168 171 protected: 169 172 … … 223 226 QProgressBar *m_pBarSubOperationProgress; 224 227 228 /** Holds whether there were no errors. */ 229 bool m_fClean; 230 225 231 /** Holds the template for the sub-operation progress label. */ 226 232 static QString m_strProgressDescriptionTemplate;
Note:
See TracChangeset
for help on using the changeset viewer.