From afc4c026f9b5ff994e385d81c6a59e899d7f5362 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 6 Aug 2009 02:10:49 -0400 Subject: [PATCH] Tables: change how the case insensitivity is done, so we don't crap out on Everleaf --- pyfpdb/Tables.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Tables.py b/pyfpdb/Tables.py index 6142fadd..97a897ca 100755 --- a/pyfpdb/Tables.py +++ b/pyfpdb/Tables.py @@ -234,7 +234,7 @@ def discover_nt_by_name(c, tablename): #print "Tables.py: tablename =", tablename, "title =", titles[hwnd] try: # this can blow up in XP on some windows, eg firefox displaying http://docs.python.org/tutorial/classes.html - if not tablename.lower() in titles[hwnd]: continue + if not tablename.lower() in titles[hwnd].lower(): continue except: continue if 'History for table:' in titles[hwnd]: continue # Everleaf Network HH viewer window @@ -302,7 +302,9 @@ def decode_windows(c, title, hwnd): return info def win_enum_handler(hwnd, titles): - titles[hwnd] = win32gui.GetWindowText(hwnd).lower() + str = win32gui.GetWindowText(hwnd) + if str != "": + titles[hwnd] = win32gui.GetWindowText(hwnd) ################################################################### # Utility routines used by all the discoverers.