summaryrefslogtreecommitdiffstats
path: root/khelpcenter/navigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khelpcenter/navigator.cpp')
-rw-r--r--khelpcenter/navigator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/khelpcenter/navigator.cpp b/khelpcenter/navigator.cpp
index 7d865d9a8..22f530a1f 100644
--- a/khelpcenter/navigator.cpp
+++ b/khelpcenter/navigator.cpp
@@ -230,6 +230,7 @@ void Navigator::insertParentAppDocs( const TQString &name, NavigatorItem *topIte
}
createItemFromDesktopFile( topItem, desktopFile );
}
+ topItem->sortChildItems( 0, true /* ascending */ );
}
void Navigator::insertIOSlaveDocs( const TQString &name, NavigatorItem *topItem )
@@ -269,8 +270,10 @@ void Navigator::insertAppletDocs( NavigatorItem *topItem )
TQStringList files = appletDir.entryList( TQDir::Files | TQDir::Readable );
TQStringList::ConstIterator it = files.begin();
TQStringList::ConstIterator end = files.end();
- for ( ; it != end; ++it )
+ for ( ; it != end; ++it ) {
createItemFromDesktopFile( topItem, appletDir.absPath() + "/" + *it );
+ }
+ topItem->sortChildItems( 0, true /* ascending */ );
}
void Navigator::createItemFromDesktopFile( NavigatorItem *topItem,