fixed toolbar title update after rename library

This commit is contained in:
Luis Ángel San Martín 2013-07-02 10:28:28 +02:00
parent 57c251ae7f
commit c146481399

View File

@ -1246,6 +1246,10 @@ void LibraryWindow::rename(QString newName)
selectedLibrary->renameCurrentLibrary(newName); selectedLibrary->renameCurrentLibrary(newName);
saveLibraries(); saveLibraries();
renameLibraryDialog->close(); renameLibraryDialog->close();
#ifndef Q_OS_MAC
if(!foldersView->currentIndex().isValid())
libraryToolBar->setCurrentFolderName(selectedLibrary->currentText());
#endif
} }
else else
{ {