Changeset 97588 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 17, 2022 10:10:02 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154623
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r97552 r97588 436 436 void UISession::sltInstallGuestAdditionsFrom(const QString &strSource) 437 437 { 438 if (! GuestAdditionsUpgradable())438 if (!guestAdditionsUpgradable()) 439 439 return sltMountDVDAdHoc(strSource); 440 440 … … 869 869 870 870 if (actionPool()->action(UIActionIndexRT_M_Devices_S_UpgradeGuestAdditions)) 871 actionPool()->action(UIActionIndexRT_M_Devices_S_UpgradeGuestAdditions)->setEnabled( GuestAdditionsUpgradable());871 actionPool()->action(UIActionIndexRT_M_Devices_S_UpgradeGuestAdditions)->setEnabled(guestAdditionsUpgradable()); 872 872 873 873 /* Notify listeners about GA state really changed: */ … … 2187 2187 } 2188 2188 2189 bool UISession:: GuestAdditionsUpgradable()2189 bool UISession::guestAdditionsUpgradable() 2190 2190 { 2191 2191 if (!machine().isOk()) … … 2198 2198 2199 2199 const QString strGuestFamily = osType.GetFamilyId(); 2200 bool fIsWindowOrLinux = strGuestFamily.contains("window ", Qt::CaseInsensitive) || strGuestFamily.contains("linux", Qt::CaseInsensitive);2200 bool fIsWindowOrLinux = strGuestFamily.contains("windows", Qt::CaseInsensitive) || strGuestFamily.contains("linux", Qt::CaseInsensitive); 2201 2201 2202 2202 if (!fIsWindowOrLinux) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r97552 r97588 486 486 487 487 /* Check if GA can be upgraded. */ 488 bool GuestAdditionsUpgradable();488 bool guestAdditionsUpgradable(); 489 489 /* Private variables: */ 490 490 UIMachine *m_pMachine;
Note:
See TracChangeset
for help on using the changeset viewer.