diff options
author | Timothy Pearson <[email protected]> | 2013-08-03 15:57:17 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-08-03 15:57:17 -0500 |
commit | c37c87bb87d0ca8e6189c1fbd4532f70bc438063 (patch) | |
tree | 5345b1a9ecb59be009b32a622694d40c29b1221a | |
parent | 5b1e2195666cac3f1bf9aae94d52980f18ddfd3f (diff) | |
download | tqt3-c37c87bb87d0ca8e6189c1fbd4532f70bc438063.tar.gz tqt3-c37c87bb87d0ca8e6189c1fbd4532f70bc438063.zip |
Automated update from Qt3
-rw-r--r-- | src/iconview/qiconview.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp index c1ba1ea34..236768d2a 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; + } } /*! |