Changeset 47579 in vbox for trunk/src/VBox
- Timestamp:
- Aug 7, 2013 10:29:50 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87779
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r47563 r47579 204 204 /* If such page present we should fetch internal page cache: */ 205 205 if (m_pages.contains(iPageId)) 206 m_pages[iPageId]->getFromCache(); 206 { 207 UISettingsPage *pSettingsPage = m_pages[iPageId]; 208 pSettingsPage->setValidatorBlocked(true); 209 pSettingsPage->getFromCache(); 210 pSettingsPage->setValidatorBlocked(false); 211 } 207 212 } 208 213 } … … 217 222 if (!m_fSavingComplete) 218 223 m_fSavingComplete = true; 224 } 225 /* If serializer loads settings: */ 226 else 227 { 228 /* We have to do initial validation finally: */ 229 foreach (UISettingsPage *pPage, m_pages.values()) 230 pPage->revalidate(); 219 231 } 220 232 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.cpp
r47573 r47579 31 31 , m_pFirstWidget(0) 32 32 , m_pValidator(0) 33 , m_fIsValidatorBlocked(true) 33 34 { 34 35 } … … 48 49 { 49 50 /* Revalidate if possible: */ 50 if (m_pValidator )51 if (m_pValidator && !m_fIsValidatorBlocked) 51 52 m_pValidator->revalidate(); 52 53 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h
r47573 r47579 94 94 /* Validation stuff: */ 95 95 void setValidator(UIPageValidator *pValidator); 96 void setValidatorBlocked(bool fIsValidatorBlocked) { m_fIsValidatorBlocked = fIsValidatorBlocked; } 96 97 virtual bool validate(QString& /* strWarningText */, QString& /* strTitle */) { return true; } 97 98 … … 149 150 QWidget *m_pFirstWidget; 150 151 UIPageValidator *m_pValidator; 152 bool m_fIsValidatorBlocked; 151 153 }; 152 154
Note:
See TracChangeset
for help on using the changeset viewer.