VirtualBox

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


Ignore:
Timestamp:
Jun 4, 2007 10:43:44 AM (18 years ago)
Author:
vboxsync
Message:

1952: Easy way to store the RELEASE log using the GUI:

Last access Date/Time of the log file used for default new file name during saving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui.h

    r3016 r3018  
    339339{
    340340    /* prepare "save as" dialog */
    341     QDate fullDate = QDate::currentDate();
    342     QTime fullTime = QTime::currentTime();
    343     QString date = fullDate.toString ("yyyy-MM-dd");
    344     QString time = fullTime.toString ("hh-mm-ss");
    345     QString defaultFileName = QString ("%1-%2-%3.log")
    346         .arg (mMachine.GetName()).arg (date).arg (time);
     341    QFileInfo fileInfo (mLogFilesList [mLogList->currentPageIndex()]);
     342    QDateTime dtInfo = fileInfo.lastModified();
     343    QString dtString = dtInfo.toString ("yyyy-MM-dd-hh-mm-ss");
     344    QString defaultFileName = QString ("%1-%2.log")
     345        .arg (mMachine.GetName()).arg (dtString);
    347346    QString defaultFullName = QDir::convertSeparators (QDir::home().absPath() +
    348347                                                       "/" + defaultFileName);
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