From d51edfd262bb11845fa026004549c81e8aa6b716 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 14 Aug 2012 04:26:33 +0200 Subject: [PATCH] remove "Reverse" from sorting window --- src/playlist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/playlist.cpp b/src/playlist.cpp index c4b788ca..db084539 100644 --- a/src/playlist.cpp +++ b/src/playlist.cpp @@ -59,7 +59,7 @@ void Playlist::Init() if (!SortDialog) { - SortDialogHeight = std::min(int(MainHeight), 18); + SortDialogHeight = std::min(int(MainHeight), 17); SortDialog = new Menu< std::pair >((COLS-SortDialogWidth)/2, (MainHeight-SortDialogHeight)/2+MainStartY, SortDialogWidth, SortDialogHeight, "Sort songs by...", Config.main_color, Config.window_border); SortDialog->CyclicScrolling(Config.use_cyclic_scrolling); @@ -78,7 +78,6 @@ void Playlist::Init() SortDialog->AddOption(std::make_pair("Filename", &MPD::Song::GetFile)); SortDialog->AddSeparator(); SortDialog->AddOption(std::make_pair("Sort", static_cast(0))); - SortDialog->AddOption(std::make_pair("Reverse", static_cast(0))); SortDialog->AddOption(std::make_pair("Cancel", static_cast(0))); } @@ -127,7 +126,7 @@ void Playlist::Resize() if (w == SortDialog) // if sorting window is active, playlist needs refreshing Items->Display(); - SortDialogHeight = std::min(int(MainHeight), 18); + SortDialogHeight = std::min(int(MainHeight), 17); if (Items->GetWidth() >= SortDialogWidth && MainHeight >= 5) { SortDialog->Resize(SortDialogWidth, SortDialogHeight);