added a little bit more consistency to the navigation history

This commit is contained in:
Luis Ángel San Martín
2014-11-26 22:19:14 +01:00
parent b5f164251d
commit e8802c2db1
2 changed files with 7 additions and 6 deletions

View File

@ -1531,6 +1531,7 @@ void LibraryWindow::addFolderToCurrentIndex()
QModelIndex newIndex = foldersModel->addFolderAtParent(newFolderName,currentIndex);
foldersView->setCurrentIndex(foldersModelProxy->mapFromSource(newIndex));
navigationController->loadFolderInfo(newIndex);
historyController->updateHistory(YACReaderLibrarySourceContainer(newIndex,YACReaderLibrarySourceContainer::Folder));
//a new folder is always an empty folder
showEmptyFolderView();
}