summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/elf/kfile_elf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/elf/kfile_elf.cpp')
-rw-r--r--kfile-plugins/elf/kfile_elf.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/kfile-plugins/elf/kfile_elf.cpp b/kfile-plugins/elf/kfile_elf.cpp
index f816cdb35..73c30203c 100644
--- a/kfile-plugins/elf/kfile_elf.cpp
+++ b/kfile-plugins/elf/kfile_elf.cpp
@@ -135,15 +135,17 @@ bool KElfPlugin::readInfo( KFileMetaInfo& info, uint what)
{
// Failed to obtain a list of ELF icons
}
- while((entry = get_nexticon(&icons, entry)) != NULL)
- {
- if (iconListing.isEmpty()) {
- iconListing = entry->name;
- }
- else {
- iconListing = iconListing.append("<p>").append(entry->name);
+ else {
+ while((entry = get_nexticon(&icons, entry)) != NULL)
+ {
+ if (iconListing.isEmpty()) {
+ iconListing = entry->name;
+ }
+ else {
+ iconListing = iconListing.append("<p>").append(entry->name);
+ }
+ break;
}
- break;
}
if (iconListing.isEmpty()) {
iconListing = TQString("<i>") + i18n("not set") + TQString("</i>");