From 6b13186a359ad819eac6e3c193205bf9a3db10a1 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 6 Apr 2005 14:47:02 +0000 Subject: [PATCH] Add wx-console bug fixes to patches directory. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1914 91ce42f0-d328-0410-95d8-f526ca767f89 --- .../patches/1.36.2-wx-console-bugfixes.diff | 123 ++++++++++++++++++ bacula/patches/patches-1.36.2 | 3 + 2 files changed, 126 insertions(+) create mode 100644 bacula/patches/1.36.2-wx-console-bugfixes.diff diff --git a/bacula/patches/1.36.2-wx-console-bugfixes.diff b/bacula/patches/1.36.2-wx-console-bugfixes.diff new file mode 100644 index 0000000000..26e385a32f --- /dev/null +++ b/bacula/patches/1.36.2-wx-console-bugfixes.diff @@ -0,0 +1,123 @@ +Index: CHANGELOG +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/wx-console/CHANGELOG,v +retrieving revision 1.42.8.2 +retrieving revision 1.42 +diff -r1.42.8.2 -r1.42 +1,9d0 +< 24-03-2005 : +< - wxbMainFrame : Fix a bug with GTK+-1.2 which caused wx-console to crash +< when starting. +< - wxbRestorePanel : Fix a major bug which caused wx-console to enter in an +< infinite loop which allocate a lot of memory and could make the system crash. +< +< 10-03-2005 : +< - wxbMainFrame : Fix bug #0000221 (Debian 292517) +< +Index: wxbmainframe.cpp +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/wx-console/wxbmainframe.cpp,v +retrieving revision 1.30.6.2 +retrieving revision 1.30 +diff -r1.30.6.2 -r1.30 +7c7 +< * Version $Id$ +--- +> * Version $Id$ +210,211d209 +< lockedbyconsole = false; +< +317a316,317 +> lockedbyconsole = false; +> +650,651c650,651 +< if (res == -1) { //Cancel pressed +< Send(".\n"); +--- +> if (res == -1) { +> Send("\n"); +Index: wxbrestorepanel.cpp +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/wx-console/wxbrestorepanel.cpp,v +retrieving revision 1.40.8.1 +retrieving revision 1.40 +diff -r1.40.8.1 -r1.40 +7c7 +< * Version $Id$ +--- +> * Version $Id$ +411c411 +< markWhenCommandDone = false; +--- +> markWhenListingDone = false; +1987a1988 +> AddPendingEvent(event); +1996a1998 +> AddPendingEvent(event); +2002a2005 +> AddPendingEvent(event); +2015a2019 +> AddPendingEvent(event); +2024c2028 +< markWhenCommandDone = false; +--- +> markWhenListingDone = false; +2028c2032 +< if (markWhenCommandDone) { +--- +> if (markWhenListingDone) { +2041a2046 +> csprint("Tree marked", CS_DEBUG); +2044c2049 +< markWhenCommandDone = !markWhenCommandDone; +--- +> markWhenListingDone = !markWhenListingDone; +2045a2051 +> AddPendingEvent(event); +2049d2054 +< markWhenCommandDone = false; +2051,2054c2056 +< if (markWhenCommandDone) { +< CmdMark(event.GetItem(), NULL, 0); +< tree->Refresh(); +< } +--- +> //event.Skip(); +2065a2068 +> AddPendingEvent(event); +2080a2084 +> AddPendingEvent(event); +2095a2100 +> AddPendingEvent(event); +2105a2111,2112 +> AddPendingEvent(event); +> //event.Skip(); +2125c2132 +< +--- +> +2140a2148,2149 +> AddPendingEvent(event); +> //event.Skip(); +2176a2186 +> AddPendingEvent(event); +2212a2223 +> AddPendingEvent(event); +2241a2253 +> AddPendingEvent(event); +2270a2283 +> AddPendingEvent(event); +Index: wxbrestorepanel.h +=================================================================== +RCS file: /cvsroot/bacula/bacula/src/wx-console/wxbrestorepanel.h,v +retrieving revision 1.19.10.1 +retrieving revision 1.19 +diff -r1.19.10.1 -r1.19 +7c7 +< * Version $Id$ +--- +> * Version $Id$ +154c154 +< bool markWhenCommandDone; //If an item should be (un)marked after the current listing/marking is done +--- +> bool markWhenListingDone; diff --git a/bacula/patches/patches-1.36.2 b/bacula/patches/patches-1.36.2 index 55d18b9633..05e2c48713 100644 --- a/bacula/patches/patches-1.36.2 +++ b/bacula/patches/patches-1.36.2 @@ -40,5 +40,8 @@ The storage pointers were being released when they should not have been. +24Mar05 1.36.2-wx-console-bugfixes.patch + Major wx-console fixes (see src/wx-console/CHANGELOG for details). + 28Mar05 1.36.2-tray-monitor-memleak.patch This patch should fix memory leaks in tray-monitor. -- 2.39.5