Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kpropertiesdialog.cpp
Show First 20 Lines • Show All 889 Lines • ▼ Show 20 Line(s) | 862 | if (!d->bMultiple) { | |||
---|---|---|---|---|---|
890 | 890 | | |||
891 | if (d->bKDesktopMode && d->bDesktopFile) { | 891 | if (d->bKDesktopMode && d->bDesktopFile) { | ||
892 | KDesktopFile config(url.toLocalFile()); | 892 | KDesktopFile config(url.toLocalFile()); | ||
893 | if (config.desktopGroup().hasKey("Name")) { | 893 | if (config.desktopGroup().hasKey("Name")) { | ||
894 | filename = config.readName(); | 894 | filename = config.readName(); | ||
895 | } | 895 | } | ||
896 | } | 896 | } | ||
897 | 897 | | |||
898 | if (isLocal && hasRoot) { | ||||
899 | filename = KIO::decodeFileName(url.path()); | ||||
900 | properties->setWindowTitle(i18n("Properties for %1", filename)); | ||||
901 | } | ||||
902 | | ||||
898 | d->oldName = filename; | 903 | d->oldName = filename; | ||
899 | } else { | 904 | } else { | ||
900 | // Multiple items: see what they have in common | 905 | // Multiple items: see what they have in common | ||
901 | const KFileItemList items = properties->items(); | 906 | const KFileItemList items = properties->items(); | ||
902 | KFileItemList::const_iterator kit = items.begin(); | 907 | KFileItemList::const_iterator kit = items.begin(); | ||
903 | const KFileItemList::const_iterator kend = items.end(); | 908 | const KFileItemList::const_iterator kend = items.end(); | ||
904 | for (++kit /*no need to check the first one again*/; kit != kend; ++kit) { | 909 | for (++kit /*no need to check the first one again*/; kit != kend; ++kit) { | ||
905 | const QUrl url = (*kit).url(); | 910 | const QUrl url = (*kit).url(); | ||
▲ Show 20 Lines • Show All 3023 Lines • Show Last 20 Lines |