summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/dagger/opentextdlg.cpp3
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
@@ -58,12 +58,14 @@ OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibl
QString type;
QPixmap *icon = 0x0;
QListViewItem *parent = 0x0;
for ( it = swordMgr->Modules.begin(); it != swordMgr->Modules.end(); it++ )
{
+ if ( it->second )
+ {
type = it->second->Type();
if ( type == "Biblical Texts" )
{
icon = bibleIcon;
parent = m_bibles;
}
@@ -78,12 +80,13 @@ OpenTextDlg::OpenTextDlg( QWidget *parent, sword::SWMgr *swordMgr, QPixmap *bibl
parent = m_lexicons;
}
parent->insertItem( new QListViewItem( parent, QString::null, it->first.c_str() ) );
}
}
+ }
m_textList.sort();
}
void OpenTextDlg::slotItemClicked( QListViewItem *item )
{