diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-06-24 18:31:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-06-24 18:31:31 +0900 |
commit | 4e0aa6d57ace1ba3084a2a111573fec92c465537 (patch) | |
tree | 22e7bdd9b49ccd4a8c77f75cea52e8741caf2f11 | |
parent | 8233b2e565d6cb27a4e8109f4c8377921809a196 (diff) | |
download | tdelibs-4e0aa6d57ace1ba3084a2a111573fec92c465537.tar.gz tdelibs-4e0aa6d57ace1ba3084a2a111573fec92c465537.zip |
Fix functionality broken by commit 8233b2e5.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | tdeio/tdefile/kicondialog.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tdeio/tdefile/kicondialog.cpp b/tdeio/tdefile/kicondialog.cpp index ecf804d6a..74ff72d11 100644 --- a/tdeio/tdefile/kicondialog.cpp +++ b/tdeio/tdefile/kicondialog.cpp @@ -16,6 +16,7 @@ #include <config.h> #include <assert.h> +#include <list> #include <kiconviewsearchline.h> @@ -32,7 +33,6 @@ #include <tqlayout.h> #include <tqstring.h> #include <tqstringlist.h> -#include <tqptrlist.h> #include <tqimage.h> #include <tqpixmap.h> #include <tqlabel.h> @@ -401,17 +401,16 @@ void TDEIconDialog::showIcons() else filelist=mFileList; - TQPtrList <IconPath>iconlist; - iconlist.setAutoDelete(true); + std::list<IconPath> iconlist; TQStringList::Iterator it; for( it = filelist.begin(); it != filelist.end(); ++it ) - iconlist.append(new IconPath(*it)); + iconlist.push_back(IconPath(*it)); iconlist.sort(); filelist.clear(); - for ( IconPath *ip=iconlist.first(); ip != 0; ip=iconlist.next() ) - filelist.append(*ip); + for (const IconPath &ip : iconlist) + filelist.append(ip); d->searchLine->clear(); mpCanvas->loadFiles(filelist); |