1 --- src/TMainWindow.cpp.orig 2008-01-27 14:32:58.000000000 +0200
2 +++ src/TMainWindow.cpp 2009-09-20 00:05:19.909190080 +0300
9 + switch(settings->getFormatImg())
28 QString fileName = QFileDialog::getSaveFileName(this, tr("Saving..."), \
29 - this->path + ".png", \
31 tr("Images (*.png *.jpg)"));
40 + switch(settings->getFormatImg())
59 QString fileName = QFileDialog::getSaveFileName(this, tr("Save frame"), \
60 - "/media/sda6/shot.png", \
61 + "/media/sda6/shot" + df, \
62 tr("Images (*.png *.xpm *.jpg)"));
66 fileInfo.path(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
71 + switch(settings->getFormatImg())
90 QProgressDialog *progress = new QProgressDialog();
91 progress->setRange(0, frames->count());
92 progress->setLabel(new QLabel(tr("Saving images...")));
95 qApp->processEvents();
96 progress->setValue(i);
97 - if(!frames->at(i)->img.save(dirName + this->fileInfo.fileName() + QString::number(i) + ".png"))
98 + if(!frames->at(i)->img.save(dirName + this->fileInfo.fileName() + QString::number(i) + df))
100 QMessageBox::critical(0, APPLICATION_NAME, tr("Error! Can't save this file"));