Changeset 72713 in vbox for trunk/src/VBox
- Timestamp:
- Jun 28, 2018 9:34:12 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.cpp
r72701 r72713 58 58 : QIWithRetranslateUI<QIManagerDialog>(pCenterWidget) 59 59 , m_comMachine(machine) 60 , pWidget(0)61 60 { 62 }63 64 UIVMLogViewerDialog::~UIVMLogViewerDialog()65 {66 if (pWidget)67 pWidget->setBeingClosed(true);68 61 } 69 62 … … 81 74 { 82 75 /* Create widget: */ 83 pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine);76 UIVMLogViewerWidget *pWidget = new UIVMLogViewerWidget(EmbedTo_Dialog, this, m_comMachine); 84 77 if (pWidget) 85 78 { … … 165 158 button(ButtonType_Close)->setShortcut(shortCut); 166 159 } 167 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h
r72706 r72713 36 36 class QVBoxLayout; 37 37 class UIVMLogViewerDialog; 38 class UIVMLogViewerWidget;39 38 class CMachine; 40 39 … … 50 49 * @param pCenterWidget Brings the widget to center wrt. pCenterWidget. */ 51 50 virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) /* override */; 52 53 51 CMachine m_comMachine; 54 52 }; … … 63 61 64 62 UIVMLogViewerDialog(QWidget *pCenterWidget, const CMachine &machine); 65 ~UIVMLogViewerDialog();66 63 67 64 protected: … … 86 83 void retranslateUi(); 87 84 CMachine m_comMachine; 88 UIVMLogViewerWidget *pWidget;89 85 }; 90 86 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r72701 r72713 79 79 , m_bWrapLines(false) 80 80 , m_font(QFontDatabase::systemFont(QFontDatabase::FixedFont)) 81 , m_fBeingClosed(false)82 81 { 83 82 /* Prepare VM Log-Viewer: */ … … 854 853 void UIVMLogViewerWidget::manageEscapeShortCut() 855 854 { 856 if (m_fBeingClosed)857 return;858 855 /* if there is no visible panels give the escape shortcut to parent dialog: */ 859 856 if (m_visiblePanelsList.isEmpty()) … … 1002 999 return logPage->currentFont(); 1003 1000 } 1004 1005 void UIVMLogViewerWidget::setBeingClosed(bool flag)1006 {1007 m_fBeingClosed = flag;1008 } -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r72701 r72713 76 76 void setMachine(const CMachine &machine); 77 77 QFont currentFont() const; 78 void setBeingClosed(bool flag);79 78 80 79 protected: … … 229 228 QFont m_font; 230 229 /** @} */ 231 bool m_fBeingClosed;232 230 friend class UIVMLogViewerBookmarksPanel; 233 231 friend class UIVMLogViewerFilterPanel;
Note:
See TracChangeset
for help on using the changeset viewer.