author | drw <drw> | 2005-01-03 21:04:08 (UTC) |
---|---|---|
committer | drw <drw> | 2005-01-03 21:04:08 (UTC) |
commit | 3344a34b7c5aadeb82fc7151bb6b2677ebd2f732 (patch) (unidiff) | |
tree | 14fb68ead17d159a03f7935fb335068ef16917d5 | |
parent | 310c7dce0c9043f66725bc79449fe958a12ad459 (diff) | |
download | opie-3344a34b7c5aadeb82fc7151bb6b2677ebd2f732.zip opie-3344a34b7c5aadeb82fc7151bb6b2677ebd2f732.tar.gz opie-3344a34b7c5aadeb82fc7151bb6b2677ebd2f732.tar.bz2 |
Fix crash when trying to display open text dialog when there are no modules in configured directory
-rw-r--r-- | noncore/apps/dagger/opentextdlg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/dagger/opentextdlg.cpp b/noncore/apps/dagger/opentextdlg.cpp index f7893a9..8c94a4b 100644 --- a/noncore/apps/dagger/opentextdlg.cpp +++ b/noncore/apps/dagger/opentextdlg.cpp | |||
@@ -62,4 +62,6 @@ OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibl | |||
62 | for ( it = swordMgr->Modules.begin(); it != swordMgr->Modules.end(); it++ ) | 62 | for ( it = swordMgr->Modules.begin(); it != swordMgr->Modules.end(); it++ ) |
63 | { | 63 | { |
64 | if ( it->second ) | ||
65 | { | ||
64 | type = it->second->Type(); | 66 | type = it->second->Type(); |
65 | if ( type == "Biblical Texts" ) | 67 | if ( type == "Biblical Texts" ) |
@@ -82,4 +84,5 @@ OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibl | |||
82 | } | 84 | } |
83 | } | 85 | } |
86 | } | ||
84 | 87 | ||
85 | m_textList.sort(); | 88 | m_textList.sort(); |