From c1464813990c22a59aa88208bbd595b1e05291c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 2 Jul 2013 10:28:28 +0200 Subject: [PATCH] fixed toolbar title update after rename library --- YACReaderLibrary/library_window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 029971f8..f9210aa2 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -1246,6 +1246,10 @@ void LibraryWindow::rename(QString newName) selectedLibrary->renameCurrentLibrary(newName); saveLibraries(); renameLibraryDialog->close(); +#ifndef Q_OS_MAC + if(!foldersView->currentIndex().isValid()) + libraryToolBar->setCurrentFolderName(selectedLibrary->currentText()); +#endif } else {