(BaseModel.delete_row_by_handle): fix sort array after delete
svn: r7967
This commit is contained in:
parent
0caa0343cc
commit
b366d35f06
@ -7,6 +7,7 @@
|
|||||||
indexes to the length of the tables to prevent a walk of the db
|
indexes to the length of the tables to prevent a walk of the db
|
||||||
entries.
|
entries.
|
||||||
* src/DisplayModels/_BaseModel.py: handle row-insert properly
|
* src/DisplayModels/_BaseModel.py: handle row-insert properly
|
||||||
|
(BaseModel.delete_row_by_handle): fix sort array after delete
|
||||||
* src/PageView.py: handle row adding properly
|
* src/PageView.py: handle row adding properly
|
||||||
|
|
||||||
2007-01-22 Alex Roitman <shura@gramps-project.org>
|
2007-01-22 Alex Roitman <shura@gramps-project.org>
|
||||||
|
@ -11,8 +11,8 @@ AM_INIT_AUTOMAKE(1.6.3)
|
|||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
GNOME_DOC_INIT
|
GNOME_DOC_INIT
|
||||||
|
|
||||||
RELEASE=0.SVN$(svnversion -n .)
|
dnl RELEASE=0.SVN$(svnversion -n .)
|
||||||
dnl RELEASE=1
|
RELEASE=0rc1
|
||||||
|
|
||||||
VERSIONSTRING=$VERSION
|
VERSIONSTRING=$VERSION
|
||||||
if test x"$RELEASE" != "x"
|
if test x"$RELEASE" != "x"
|
||||||
|
@ -67,7 +67,6 @@ src/DataViews/_EventView.py
|
|||||||
src/DataViews/_FamilyList.py
|
src/DataViews/_FamilyList.py
|
||||||
src/DataViews/_RelationView.py
|
src/DataViews/_RelationView.py
|
||||||
src/DataViews/__init__.py
|
src/DataViews/__init__.py
|
||||||
src/DataViews/_MapView.py
|
|
||||||
src/DataViews/_MediaView.py
|
src/DataViews/_MediaView.py
|
||||||
src/DataViews/_PedigreeView.py
|
src/DataViews/_PedigreeView.py
|
||||||
src/DataViews/_PersonView.py
|
src/DataViews/_PersonView.py
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-01-23 17:50-0700\n"
|
"POT-Creation-Date: 2007-01-23 18:03-0700\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -201,13 +201,13 @@ msgstr ""
|
|||||||
msgid "Column Editor"
|
msgid "Column Editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../src/const.py:148
|
#: ../src/const.py:149
|
||||||
msgid ""
|
msgid ""
|
||||||
"GRAMPS (Genealogical Research and Analysis Management Programming System) is "
|
"GRAMPS (Genealogical Research and Analysis Management Programming System) is "
|
||||||
"a personal genealogy program."
|
"a personal genealogy program."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../src/const.py:166
|
#: ../src/const.py:167
|
||||||
msgid "TRANSLATORS: Translate this to your name in your native language"
|
msgid "TRANSLATORS: Translate this to your name in your native language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2099,42 +2099,6 @@ msgstr ""
|
|||||||
msgid "Children"
|
msgid "Children"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:622
|
|
||||||
msgid "Maps"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:631
|
|
||||||
msgid "Zoom _In"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:631
|
|
||||||
msgid "Zoom in by a factor of 2"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:634
|
|
||||||
msgid "Zoom _Out"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:634
|
|
||||||
msgid "Zoom out by a factor of 2"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:637
|
|
||||||
msgid "_Normal Size"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:637
|
|
||||||
msgid "Return to normal size"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:640
|
|
||||||
msgid "Best _Fit"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MapView.py:641
|
|
||||||
msgid "Produce the best fit of the map in the window"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../src/DataViews/_MediaView.py:83
|
#: ../src/DataViews/_MediaView.py:83
|
||||||
msgid "Add a new media object"
|
msgid "Add a new media object"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -147,7 +147,6 @@ class BaseModel(gtk.GenericTreeModel):
|
|||||||
self.indexlist = {}
|
self.indexlist = {}
|
||||||
|
|
||||||
def add_row_by_handle(self,handle):
|
def add_row_by_handle(self,handle):
|
||||||
|
|
||||||
if self.search and self.search.match(handle):
|
if self.search and self.search.match(handle):
|
||||||
|
|
||||||
data = self.map(handle)
|
data = self.map(handle)
|
||||||
@ -170,6 +169,14 @@ class BaseModel(gtk.GenericTreeModel):
|
|||||||
def delete_row_by_handle(self,handle):
|
def delete_row_by_handle(self,handle):
|
||||||
index = self.indexlist[handle]
|
index = self.indexlist[handle]
|
||||||
|
|
||||||
|
# remove from sort array
|
||||||
|
i = 0
|
||||||
|
for (key, node) in self.sarray:
|
||||||
|
if handle == node:
|
||||||
|
del self.sarray[i]
|
||||||
|
break
|
||||||
|
i += 1
|
||||||
|
|
||||||
del self.datalist[index]
|
del self.datalist[index]
|
||||||
del self.indexlist[handle]
|
del self.indexlist[handle]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user