fixed write paths for YACReader

This commit is contained in:
Luis Ángel San Martín
2013-11-24 18:42:16 +01:00
parent 8255637028
commit 4c5f224d52
5 changed files with 11 additions and 68 deletions

View File

@ -1008,7 +1008,7 @@ void MainWindowViewer::getSiblingComics(QString path,QString currentComic)
int index = list.indexOf(currentComic);
if(index == -1) //comic not found
{
QFile f(QCoreApplication::applicationDirPath()+"/errorLog.txt");
/*QFile f(QCoreApplication::applicationDirPath()+"/errorLog.txt");
if(!f.open(QIODevice::WriteOnly))
{
QMessageBox::critical(NULL,tr("Saving error log file...."),tr("There was a problem saving YACReader error log file. Please, check if you have enough permissions in the YACReader root folder."));
@ -1025,7 +1025,7 @@ void MainWindowViewer::getSiblingComics(QString path,QString currentComic)
txtS << s << '\n';
}
f.close();
}
}*/
}
previousComicPath = nextComicPath = "";