~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-17 23:23:09 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20111017232309-kzm6841lzk61ranj
Tags: 4.1.4-dfsg-1
* New upstream release.
  - Fixes missing icons when using pt_BR locale. (Closes: #507188)
  - Fixes guest additions download url. (Closes: #637349; LP: #840668)
* Refresh patches.
* Drop the vboxmouse x11 driver. The mouse integration is now completely
  handled by the kernel module.
* Restrict dh_pycentral to the virtualbox binary package.
* Merge changes from the Ubuntu package but use them only when built
  on Ubuntu:
  - Add an Apport hook.
  - Add vboxguest modalias to the package control field.
* Pass KBUILD_VERBOSE=2 to kmk.
* Add 36-fix-text-mode.patch to fix text mode when using the vboxvideo driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: UIMachineLogic.cpp 38431 2011-08-12 11:04:16Z vboxsync $ */
 
1
/* $Id: UIMachineLogic.cpp $ */
2
2
/** @file
3
3
 *
4
4
 * VBox frontends: Qt GUI ("VirtualBox"):
45
45
 
46
46
/* Global includes */
47
47
#include <iprt/path.h>
48
 
#include <VBox/VMMDev.h>
49
48
 
50
49
#ifdef VBOX_WITH_DEBUGGER_GUI
51
50
# include <iprt/ldr.h>
1454
1453
 
1455
1454
    /* Check for the already registered image */
1456
1455
    CVirtualBox vbox = vboxGlobal().virtualBox();
1457
 
    QString name = QString("VBoxGuestAdditions_%1.iso").arg(vbox.GetVersion().remove("_OSE"));
 
1456
    const QString &name = QString("VBoxGuestAdditions_%1.iso").arg(vboxGlobal().vboxVersionStringNormalized());
1458
1457
 
1459
1458
    CMediumVector vec = vbox.GetDVDImages();
1460
1459
    for (CMediumVector::ConstIterator it = vec.begin(); it != vec.end(); ++ it)
1470
1469
    int result = msgCenter().cannotFindGuestAdditions(QDir::toNativeSeparators(strSrc1), QDir::toNativeSeparators(strSrc2));
1471
1470
    if (result == QIMessageBox::Yes)
1472
1471
    {
1473
 
        QString source = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vbox.GetVersion().remove("_OSE")) + name;
1474
 
        QString target = QDir(vboxGlobal().virtualBox().GetHomeFolder()).absoluteFilePath(name);
 
1472
        const QString &source = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vboxGlobal().vboxVersionStringNormalized()) + name;
 
1473
        const QString &target = QDir(vboxGlobal().virtualBox().GetHomeFolder()).absoluteFilePath(name);
1475
1474
 
1476
1475
        UIDownloaderAdditions *pDl = UIDownloaderAdditions::create();
1477
1476
        /* Configure the additions downloader. */