* src/DataViews/_SourceView.py (edit,on_double_click): Catch exception.
svn: r6670
This commit is contained in:
parent
e0b3dc141d
commit
fc36af2974
@ -1,4 +1,5 @@
|
|||||||
2006-05-15 Alex Roitman <shura@gramps-project.org>
|
2006-05-15 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/DataViews/_SourceView.py (edit,on_double_click): Catch exception.
|
||||||
* configure.in: Generate new Makefile.
|
* configure.in: Generate new Makefile.
|
||||||
* src/Makefile.am: adapt to new module.
|
* src/Makefile.am: adapt to new module.
|
||||||
* src/Selectors: separate selectors in their own module.
|
* src/Selectors: separate selectors in their own module.
|
||||||
|
@ -38,7 +38,7 @@ import DisplayModels
|
|||||||
import const
|
import const
|
||||||
import Utils
|
import Utils
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
|
import Errors
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
from Editors import EditSource, DelSrcQuery
|
from Editors import EditSource, DelSrcQuery
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
from QuestionDialog import QuestionDialog, ErrorDialog
|
||||||
@ -151,7 +151,10 @@ class SourceView(PageView.ListView):
|
|||||||
def on_double_click(self,obj,event):
|
def on_double_click(self,obj,event):
|
||||||
handle = self.first_selected()
|
handle = self.first_selected()
|
||||||
source = self.dbstate.db.get_source_from_handle(handle)
|
source = self.dbstate.db.get_source_from_handle(handle)
|
||||||
|
try:
|
||||||
EditSource(self.dbstate, self.uistate, [], source)
|
EditSource(self.dbstate, self.uistate, [], source)
|
||||||
|
except Errors.WindowActiveError:
|
||||||
|
pass
|
||||||
|
|
||||||
def add(self,obj):
|
def add(self,obj):
|
||||||
EditSource(self.dbstate, self.uistate, [], RelLib.Source())
|
EditSource(self.dbstate, self.uistate, [], RelLib.Source())
|
||||||
@ -186,5 +189,8 @@ class SourceView(PageView.ListView):
|
|||||||
|
|
||||||
for handle in mlist:
|
for handle in mlist:
|
||||||
source = self.dbstate.db.get_source_from_handle(handle)
|
source = self.dbstate.db.get_source_from_handle(handle)
|
||||||
|
try:
|
||||||
EditSource(self.dbstate, self.uistate, [], source)
|
EditSource(self.dbstate, self.uistate, [], source)
|
||||||
|
except Errors.WindowActiveError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user