Debug line removed, .hidden extension removed at GTA Snapmatic export

This commit is contained in:
Rafael 2016-10-27 06:58:56 +02:00
parent 1c0ad45024
commit 6acd7473d7
2 changed files with 7 additions and 2 deletions

View file

@ -35,8 +35,14 @@ void PictureCopy::copyPicture(QWidget *parent, QString picPath)
settings.beginGroup("FileDialogs");
settings.beginGroup("PictureCopy");
QString adjustedPicPath = picPath;
if (adjustedPicPath.right(7) == ".hidden") // for the hidden file system
{
adjustedPicPath.remove(adjustedPicPath.length() - 7, 7);
}
fileDialogPreSave:
QFileInfo sgdFileInfo(picPath);
QFileInfo sgdFileInfo(adjustedPicPath);
QFileDialog fileDialog(parent);
fileDialog.setFileMode(QFileDialog::AnyFile);
fileDialog.setViewMode(QFileDialog::Detail);

View file

@ -81,7 +81,6 @@ void SnapmaticWidget::setSnapmaticPicture(SnapmaticPicture *picture, QString pic
{
smpic = picture;
picPath = picturePath;
qDebug() << picPath;
picStr = picture->getPictureStr();
picTitl = picture->getPictureTitl();