Changeset 72701 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 27, 2018 2:03:43 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123230
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.cpp
r71638 r72701 58 58 : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget) 59 59 , m_comMachine(machine) 60 , pWidget(0) 60 61 { 62 } 63 64 UIVMLogViewerDialog::~UIVMLogViewerDialog() 65 { 66 if (pWidget) 67 pWidget->setBeingClosed(true); 61 68 } 62 69 … … 74 81 { 75 82 /* Create widget: */ 76 UIVMLogViewerWidget *pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine);83 pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine); 77 84 if (pWidget) 78 85 { -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h
r72039 r72701 36 36 class QVBoxLayout; 37 37 class UIVMLogViewerDialog; 38 class UIVMLogViewerWidget; 38 39 class CMachine; 39 40 … … 44 45 public: 45 46 UIVMLogViewerDialogFactory(const CMachine &machine); 46 47 47 48 protected: 48 49 /** Creates derived @a pDialog instance. … … 62 63 63 64 UIVMLogViewerDialog(QWidget *pCenterWidget, const CMachine &machine); 65 ~UIVMLogViewerDialog(); 64 66 65 67 protected: … … 84 86 void retranslateUi(); 85 87 CMachine m_comMachine; 88 UIVMLogViewerWidget *pWidget; 86 89 }; 87 90 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r72699 r72701 79 79 , m_bWrapLines(false) 80 80 , m_font(QFontDatabase::systemFont(QFontDatabase::FixedFont)) 81 , m_fBeingClosed(false) 81 82 { 82 83 /* Prepare VM Log-Viewer: */ … … 853 854 void UIVMLogViewerWidget::manageEscapeShortCut() 854 855 { 856 if (m_fBeingClosed) 857 return; 855 858 /* if there is no visible panels give the escape shortcut to parent dialog: */ 856 859 if (m_visiblePanelsList.isEmpty()) … … 999 1002 return logPage->currentFont(); 1000 1003 } 1004 1005 void UIVMLogViewerWidget::setBeingClosed(bool flag) 1006 { 1007 m_fBeingClosed = flag; 1008 } -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r72039 r72701 75 75 /** Sets the machine whose logs to show. */ 76 76 void setMachine(const CMachine &machine); 77 78 77 QFont currentFont() const; 78 void setBeingClosed(bool flag); 79 79 80 80 protected: … … 229 229 QFont m_font; 230 230 /** @} */ 231 231 bool m_fBeingClosed; 232 232 friend class UIVMLogViewerBookmarksPanel; 233 233 friend class UIVMLogViewerFilterPanel;
Note:
See TracChangeset
for help on using the changeset viewer.