Changeset 28846 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 27, 2010 4:47:03 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp
r28838 r28846 73 73 // Helpers 74 74 ///////////////////////////////////////////////////////////////////////////// 75 76 bool VBoxProblemReporter::isAlreadyShown(const QString &strWarningName) const 77 { 78 return m_shownWarnings.contains(strWarningName); 79 } 80 81 void VBoxProblemReporter::setShownStatus(const QString &strWarningName) 82 { 83 if (!m_shownWarnings.contains(strWarningName)) 84 m_shownWarnings.append(strWarningName); 85 } 86 87 void VBoxProblemReporter::clearShownStatus(const QString &strWarningName) 88 { 89 if (m_shownWarnings.contains(strWarningName)) 90 m_shownWarnings.removeAll(strWarningName); 91 } 75 92 76 93 /** … … 1882 1899 void VBoxProblemReporter::remindAboutMouseIntegration (bool aSupportsAbsolute) 1883 1900 { 1901 if (isAlreadyShown("remindAboutMouseIntegration")) 1902 return; 1903 setShownStatus("remindAboutMouseIntegration"); 1904 1884 1905 static const char *kNames [2] = 1885 1906 { … … 1932 1953 kNames [0] /* aAutoConfirmId */); 1933 1954 } 1955 1956 clearShownStatus("remindAboutMouseIntegration"); 1934 1957 } 1935 1958 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h
r28838 r28846 72 72 // helpers 73 73 74 bool isAlreadyShown(const QString &strGuardBlockName) const; 75 void setShownStatus(const QString &strGuardBlockName); 76 void clearShownStatus(const QString &strGuardBlockName); 77 74 78 int message (QWidget *aParent, Type aType, const QString &aMessage, 75 79 const QString &aDetails = QString::null, … … 411 415 static QString doFormatErrorInfo (const COMErrorInfo &aInfo, 412 416 HRESULT aWrapperRC = S_OK); 417 418 QStringList m_shownWarnings; 413 419 }; 414 420
Note:
See TracChangeset
for help on using the changeset viewer.