summaryrefslogtreecommitdiffstats
path: root/src/iconview/qiconview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/iconview/qiconview.cpp')
-rw-r--r--src/iconview/qiconview.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
index c1ba1ea3..236768d2 100644
--- a/src/iconview/qiconview.cpp
+++ b/src/iconview/qiconview.cpp
@@ -2964,6 +2964,7 @@ TQIconView::~TQIconView()
d->toolTip = 0;
#endif
delete d;
+ d = NULL;
}
/*!
@@ -3227,7 +3228,12 @@ int TQIconView::index( const TQIconViewItem *item ) const
TQIconViewItem *TQIconView::firstItem() const
{
- return d->firstItem;
+ if (d) {
+ return d->firstItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!
@@ -3239,7 +3245,12 @@ TQIconViewItem *TQIconView::firstItem() const
TQIconViewItem *TQIconView::lastItem() const
{
- return d->lastItem;
+ if (d) {
+ return d->lastItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!
@@ -3251,7 +3262,12 @@ TQIconViewItem *TQIconView::lastItem() const
TQIconViewItem *TQIconView::currentItem() const
{
- return d->currentItem;
+ if (d) {
+ return d->currentItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!