Changeset 88766 in vbox
- Timestamp:
- Apr 29, 2021 7:40:19 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144096
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r88737 r88766 164 164 } 165 165 166 UIVMLogViewerWidget::~UIVMLogViewerWidget() 167 { 168 /* In machine UI context we perform cleanup during destruction. 169 UIMachineLogic makes sure this happens early enough: */ 170 if (m_enmEmbedding == EmbedTo_Dialog) 171 sltSaveOptions(); 172 } 173 166 174 int UIVMLogViewerWidget::defaultLogPageWidth() const 167 175 { … … 728 736 if (loadedFont != QFont()) 729 737 m_font = loadedFont; 730 connect(&uiCommon(), &UICommon::sigAskToCommitData, 731 this, &UIVMLogViewerWidget::sltSaveOptions); 738 /* In manager UI we cleanup by listening the sigAskToCommitData signal: */ 739 if (m_enmEmbedding == EmbedTo_Stack) 740 connect(&uiCommon(), &UICommon::sigAskToCommitData, 741 this, &UIVMLogViewerWidget::sltSaveOptions); 732 742 } 733 743 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r88735 r88766 73 73 UIVMLogViewerWidget(EmbedTo enmEmbedding, UIActionPool *pActionPool, 74 74 bool fShowToolbar = true, const CMachine &comMachine = CMachine(), QWidget *pParent = 0); 75 ~UIVMLogViewerWidget(); 75 76 /** Returns the width of the current log page. return 0 if there is no current log page: */ 76 77 int defaultLogPageWidth() const; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r88741 r88766 2568 2568 void UIMachineLogic::sltCloseLogViewerWindow() 2569 2569 { 2570 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender());2571 if (m_pLogViewerDialog != pDialog || !pDialog)2572 return; 2573 2570 if (!m_pLogViewerDialog) 2571 return; 2572 2573 QIManagerDialog* pDialog = m_pLogViewerDialog; 2574 2574 /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/ 2575 2575 m_pLogViewerDialog = 0; … … 2808 2808 cleanupDebugger(); 2809 2809 #endif 2810 sltCloseLogViewerWindow(); 2810 2811 sltCloseFileManagerDialog(); 2811 2812 sltCloseVMInformationDialog();
Note:
See TracChangeset
for help on using the changeset viewer.