From 762f233b960e8a318848b532eadf456ac2a3fbe4 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 30 Aug 2009 06:48:01 +0200 Subject: [PATCH] do not destroy screen at exit if pdcurses library is used --- src/ncmpcpp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 00cd97f5..05823289 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -94,7 +94,9 @@ namespace std::cerr.rdbuf(cerr_buffer); errorlog.close(); Mpd.Disconnect(); +# ifndef USE_PDCURSES // destroying screen somehow crashes pdcurses DestroyScreen(); +# endif // USE_PDCURSES WindowTitle(""); } }