mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
bug fixed onpening next/previous folder
This commit is contained in:
parent
bf8c0109eb
commit
0d83e0a117
@ -424,6 +424,7 @@ void FileComic::process()
|
||||
out << "--tiempo en copiar datos : " << myTimer.elapsed() << endl;
|
||||
f.close();
|
||||
emit imagesLoaded();
|
||||
moveToThread(QApplication::instance()->thread());
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void FileComic::loadSizes()
|
||||
@ -544,6 +545,7 @@ void FolderComic::process()
|
||||
}
|
||||
}
|
||||
emit imagesLoaded();
|
||||
moveToThread(QApplication::instance()->thread());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@ -618,6 +620,7 @@ void PDFComic::process()
|
||||
|
||||
delete pdfComic;
|
||||
emit imagesLoaded();
|
||||
moveToThread(QApplication::instance()->thread());
|
||||
}
|
||||
|
||||
void PDFComic::renderPage(int page)
|
||||
|
@ -863,8 +863,13 @@ void MainWindowViewer::openPreviousComic()
|
||||
if(!siblingComics.isEmpty())
|
||||
{
|
||||
int currentIndex = siblingComics.indexOf(currentComicDB);
|
||||
currentComicDB = siblingComics.at(currentIndex-1);
|
||||
open(currentDirectory+currentComicDB.path,currentComicDB,siblingComics);
|
||||
if (currentIndex == -1)
|
||||
return;
|
||||
if(currentIndex-1 >= 0 && currentIndex-1 < siblingComics.count())
|
||||
{
|
||||
currentComicDB = siblingComics.at(currentIndex-1);
|
||||
open(currentDirectory+currentComicDB.path,currentComicDB,siblingComics);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(!previousComicPath.isEmpty())
|
||||
@ -882,9 +887,13 @@ void MainWindowViewer::openNextComic()
|
||||
if(!siblingComics.isEmpty())
|
||||
{
|
||||
int currentIndex = siblingComics.indexOf(currentComicDB);
|
||||
if (currentIndex == -1)
|
||||
return;
|
||||
if(currentIndex+1 > 0 && currentIndex+1 < siblingComics.count())
|
||||
currentComicDB = siblingComics.at(currentIndex+1);
|
||||
open(currentDirectory+currentComicDB.path,currentComicDB,siblingComics);
|
||||
{
|
||||
currentComicDB = siblingComics.at(currentIndex+1);
|
||||
open(currentDirectory+currentComicDB.path,currentComicDB,siblingComics);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(!nextComicPath.isEmpty())
|
||||
|
@ -54,12 +54,10 @@ struct SevenZipInterface {
|
||||
};
|
||||
|
||||
//SevenZipInterface * szInterface;
|
||||
QLibrary * sevenzLib = 0;
|
||||
|
||||
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
||||
QObject(parent)
|
||||
QObject(parent),sevenzLib(0)
|
||||
{
|
||||
|
||||
szInterface = new SevenZipInterface;
|
||||
//load functions
|
||||
loadFunctions();
|
||||
|
@ -42,7 +42,7 @@ public slots:
|
||||
QList<QString> getFileNames();
|
||||
private:
|
||||
SevenZipInterface * szInterface;
|
||||
|
||||
QLibrary * sevenzLib;
|
||||
void loadFunctions();
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user