VirtualBox

Changeset 29381 in vbox


Ignore:
Timestamp:
May 11, 2010 5:04:48 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61490
Message:

FE/Qt: 4919: VM Log Viewer is now saving logs through file-copy procedure again.

File:
1 edited

Legend:

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

    r28800 r29381  
    246246        tr ("Save VirtualBox Log As"), defaultFullName);
    247247
    248     /* Save new log into the file */
     248    /* Copy log into the file */
    249249    if (!newFileName.isEmpty())
    250     {
    251         /* Reread log data */
    252         QFile newFile (newFileName);
    253         if (!newFile.open (QIODevice::WriteOnly))
    254             return;
    255 
    256         /* Save log data into the new file */
    257         newFile.write (mLogFiles.at(mLogList->currentIndex()).second->toPlainText().toUtf8());
    258     }
     250        QFile::copy(mMachine.QueryLogFilename(mLogList->currentIndex()), newFileName);
    259251}
    260252
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