VirtualBox

Changeset 43762 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 29, 2012 7:42:50 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81690
Message:

FE/Qt: 6477: Taking screen-shot on Windows doesn't saves the file: Convert screen-shot name separators to native style.

File:
1 edited

Legend:

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

    r43650 r43762  
    18801880    p.end();
    18811881
    1882     /* Save the big image in the requested format. */
     1882    /* Save the big image in the requested format: */
    18831883    const QFileInfo fi(strFile);
    1884     const QString &strPath   = fi.absolutePath() + "/" + fi.baseName();
     1884    const QString &strPathWithoutSuffix = QDir(fi.absolutePath()).absoluteFilePath(fi.baseName());
    18851885    const QString &strSuffix = fi.suffix().isEmpty() ? strFormat : fi.suffix();
    1886     bigImg.save(QFile::encodeName(QString("%1.%2").arg(strPath).arg(strSuffix)),
     1886    bigImg.save(QDir::toNativeSeparators(QFile::encodeName(QString("%1.%2").arg(strPathWithoutSuffix, strSuffix))),
    18871887                strFormat.toAscii().constData());
    18881888}
Note: See TracChangeset for help on using the changeset viewer.

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