Changeset 63577 in vbox
- Timestamp:
- Aug 17, 2016 12:12:37 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r63567 r63577 2248 2248 0 /* auto-confirm id */, 2249 2249 tr("Install", "extension pack")); 2250 } 2251 2252 bool UIMessageCenter::proposeDeleteExtentionPack(const QString &strTo) const 2253 { 2254 return questionBinary(windowManager().networkManagerOrMainWindowShown(), MessageType_Question, 2255 tr("Do you want to delete the downloaded file <nobr><b>%1</b>.</nobr></p>") 2256 .arg(strTo), 2257 0 /* auto-confirm id */, 2258 tr("Delete", "extension pack")); 2250 2259 } 2251 2260 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r62493 r63577 338 338 void cannotSaveExtensionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo) const; 339 339 bool proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo) const; 340 bool proposeDeleteExtentionPack(const QString &strTo) const; 340 341 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 341 342 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r62493 r63577 418 418 if (msgCenter().proposeInstallExtentionPack(GUI_ExtPackName, strSource, QDir::toNativeSeparators(strTarget))) 419 419 UIGlobalSettingsExtension::doInstallation(strTarget, strDigest, windowManager().networkManagerOrMainWindowShown(), NULL); 420 /* Propose to delete the downloaded extension pack: */ 421 if (msgCenter().proposeDeleteExtentionPack(QDir::toNativeSeparators(strTarget))) 422 QFile::remove(QDir::toNativeSeparators(strTarget)); 420 423 } 421 424 };
Note:
See TracChangeset
for help on using the changeset viewer.