mirror of
https://github.com/YACReader/yacreader
synced 2025-10-20 10:55:51 -04:00
corregida la actualizaci?n del historico de navegaci?n
This commit is contained in:
@ -1268,6 +1268,8 @@ void LibraryWindow::setRootIndex()
|
||||
if(d.exists(path))
|
||||
{
|
||||
loadCovers(QModelIndex());
|
||||
if(history.count()>1)
|
||||
updateHistory(QModelIndex());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1607,10 +1609,13 @@ void LibraryWindow::updateHistory(const QModelIndex &mi)
|
||||
history.removeLast();
|
||||
}
|
||||
|
||||
backAction->setEnabled(true);
|
||||
if(mi!=history.at(currentFolderNavigation))
|
||||
{
|
||||
history.append(mi);
|
||||
|
||||
backAction->setEnabled(true);
|
||||
currentFolderNavigation++;
|
||||
}
|
||||
|
||||
forwardAction->setEnabled(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user