VirtualBox

Changeset 41234 in vbox for trunk/src


Ignore:
Timestamp:
May 10, 2012 12:58:34 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 6196: Take VM screenshot function should propose correct filename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r41159 r41234  
    967967    }
    968968    if (i != -1)
    969         strFilter = filters.at(i);
     969    {
     970        filters.prepend(filters.takeAt(i));
     971        strFilter = filters.first();
     972    }
    970973    /* Request the filename from the user. */
    971974    const CMachine &machine = session().GetMachine();
    972     const QString &strStart = machine.GetSettingsFilePath();
     975    QFileInfo fi(machine.GetSettingsFilePath());
     976    QString strAbsolutePath(fi.absolutePath());
     977    QString strCompleteBaseName(fi.completeBaseName());
     978    QString strStart = QDir(strAbsolutePath).absoluteFilePath(strCompleteBaseName);
    973979    QString strFilename = QIFileDialog::getSaveFileName(strStart,
    974980                                                        filters.join(";;"),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette