Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a bug of file saving.
  • Loading branch information
Joseph Pan committed Apr 6, 2014
1 parent 12c34a6 commit eefca8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainwindow.cpp
Expand Up @@ -204,9 +204,9 @@ bool MainWindow::saveAs()
bool MainWindow::saveFile(const QString &fileName)
{
if (QFileInfo(fileName).suffix() == ""){
video->setOutput(fileName.toStdString(), ".avi");
video->setOutput(QFileInfo(fileName).filePath().toStdString(), ".avi");
} else {
video->setOutput(QFileInfo(fileName).fileName().toStdString());
video->setOutput(QFileInfo(fileName).filePath().toStdString());
}

// change the cursor
Expand Down

0 comments on commit eefca8a

Please sign in to comment.