[Pkg-bazaar-commits] ./bzr-gtk/unstable r111: Fixed bug: unable to remove bookmarks (not reported).
Szilveszter Farkas (Phanatic)
Szilveszter.Farkas at gmail.com
Fri Apr 10 07:49:22 UTC 2009
------------------------------------------------------------
revno: 111
committer: Szilveszter Farkas (Phanatic) <Szilveszter.Farkas at gmail.com>
branch nick: bzr-gtk
timestamp: Sun 2006-11-05 00:16:23 +0100
message:
Fixed bug: unable to remove bookmarks (not reported).
modified:
olive/__init__.py
olive/menu.py
-------------- next part --------------
=== modified file 'olive/__init__.py'
--- a/olive/__init__.py 2006-11-04 19:21:29 +0000
+++ b/olive/__init__.py 2006-11-04 23:16:23 +0000
@@ -673,7 +673,7 @@
# Re-read preferences
self.pref.read()
-
+
# Get bookmarks
bookmarks = self.pref.get_bookmarks()
@@ -859,6 +859,8 @@
def read(self):
""" Just read the configuration. """
+ # Re-initialize the config parser object to avoid some bugs
+ self.config = ConfigParser.RawConfigParser()
if sys.platform == 'win32':
# Windows - no dotted files
self.config.read([os.path.expanduser('~/olive.conf')])
=== modified file 'olive/menu.py'
--- a/olive/menu.py 2006-10-25 16:29:18 +0000
+++ b/olive/menu.py 2006-11-04 23:16:23 +0000
@@ -234,8 +234,8 @@
""" Left context menu -> Remove """
if self.selected != None:
- self.pref.remove_bookmark(self.comm.get_selected_left())
- self.comm.refresh_left()
+ self.pref.remove_bookmark(self.selected)
+ self.pref.write()
def open_folder(self, action):
""" Left context menu -> Open Folder """
More information about the Pkg-bazaar-commits
mailing list