Changeset 39349 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 17, 2011 2:58:30 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIExtraDataEventHandler.cpp
r35722 r39349 64 64 } 65 65 66 if (strKey == VBoxDefs::GUI_UpdateDlgWinID)67 {68 if (m_fIsUpdDlgOwner)69 {70 if (!(strValue.isEmpty() ||71 strValue == QString("%1")72 .arg((qulonglong)vboxGlobal().mainWindow()->winId())))73 fVeto = true;74 }75 return;76 }77 66 #ifdef VBOX_GUI_WITH_SYSTRAY 78 67 if (strKey == VBoxDefs::GUI_TrayIconWinID) … … 127 116 emit sigCanShowRegistrationDlg(false); 128 117 } 129 if (strKey == VBoxDefs::GUI_UpdateDlgWinID)130 {131 if (strValue.isEmpty())132 {133 m_fIsUpdDlgOwner = false;134 emit sigCanShowUpdateDlg(true);135 }136 else if (strValue == QString("%1")137 .arg((qulonglong)vboxGlobal().mainWindow()->winId()))138 {139 m_fIsUpdDlgOwner = true;140 emit sigCanShowUpdateDlg(true);141 }142 else143 emit sigCanShowUpdateDlg(false);144 }145 118 if (strKey == VBoxDefs::GUI_LanguageId) 146 119 emit sigGUILanguageChange(strValue); … … 202 175 signals: 203 176 void sigCanShowRegistrationDlg(bool fEnabled); 204 void sigCanShowUpdateDlg(bool fEnabled);205 177 void sigGUILanguageChange(QString strLang); 206 178 #ifdef VBOX_GUI_WITH_SYSTRAY … … 280 252 Qt::QueuedConnection); 281 253 282 connect(m_pHandler, SIGNAL(sigCanShowUpdateDlg(bool)),283 this, SIGNAL(sigCanShowUpdateDlg(bool)),284 Qt::QueuedConnection);285 286 254 connect(m_pHandler, SIGNAL(sigGUILanguageChange(QString)), 287 255 this, SIGNAL(sigGUILanguageChange(QString)), -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIExtraDataEventHandler.h
r30677 r39349 37 37 /* Specialized extra data signals */ 38 38 void sigCanShowRegistrationDlg(bool fEnabled); 39 void sigCanShowUpdateDlg(bool fEnabled);40 39 void sigGUILanguageChange(QString strLang); 41 40 #ifdef VBOX_GUI_WITH_SYSTRAY -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.cpp
r38978 r39349 63 63 const char* VBoxDefs::GUI_RegistrationDlgWinID = "GUI/RegistrationDlgWinID"; 64 64 const char* VBoxDefs::GUI_RegistrationData = "GUI/SUNOnlineData"; 65 const char* VBoxDefs::GUI_UpdateDlgWinID = "GUI/UpdateDlgWinID";66 65 const char* VBoxDefs::GUI_UpdateDate = "GUI/UpdateDate"; 67 66 const char* VBoxDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount"; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.h
r38978 r39349 143 143 static const char* GUI_RegistrationDlgWinID; 144 144 static const char* GUI_RegistrationData; 145 static const char* GUI_UpdateDlgWinID;146 145 static const char* GUI_UpdateDate; 147 146 static const char* GUI_UpdateCheckCount;
Note:
See TracChangeset
for help on using the changeset viewer.