- Timestamp:
- Nov 14, 2024 11:50:32 AM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 165937
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r106282 r107001 52 52 #include "QIToolBar.h" 53 53 #include "QIToolButton.h" 54 #include "UICommon.h" 54 55 #include "UIExtraDataManager.h" 55 56 #include "UIHelpViewer.h" … … 1369 1370 , m_fModelContentCreated(false) 1370 1371 , m_fIndexingFinished(false) 1372 , m_fCommitDataSignalReceived(false) 1371 1373 { 1372 1374 qRegisterMetaType<HelpBrowserTabs>("HelpBrowserTabs"); … … 1431 1433 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 1432 1434 this, &UIHelpBrowserWidget::sltRetranslateUI); 1435 connect(&uiCommon(), &UICommon::sigAskToCommitData, 1436 this, &UIHelpBrowserWidget::sltCommitDataSignalReceived); 1433 1437 } 1434 1438 … … 1791 1795 void UIHelpBrowserWidget::cleanup() 1792 1796 { 1797 if (m_fCommitDataSignalReceived) 1798 return; 1793 1799 saveOptions(); 1794 1800 saveBookmarks(); … … 1838 1844 } 1839 1845 1846 void UIHelpBrowserWidget::sltCommitDataSignalReceived() 1847 { 1848 cleanup(); 1849 m_fCommitDataSignalReceived = true; 1850 } 1840 1851 1841 1852 void UIHelpBrowserWidget::showEvent(QShowEvent *pEvent) -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r106282 r107001 121 121 void sltMouseOverImage(const QString &strImageName); 122 122 void sltRetranslateUI(); 123 void sltCommitDataSignalReceived(); 123 124 124 125 private: … … 209 210 bool m_fModelContentCreated; 210 211 bool m_fIndexingFinished; 212 bool m_fCommitDataSignalReceived; 211 213 /** This queue is used in unlikely case where possibly several keywords are requested to be shown 212 214 * but indexing is not yet finished. In that case we queue the keywords and process them after
Note:
See TracChangeset
for help on using the changeset viewer.