Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelfunc.cpp
Show First 20 Lines • Show All 977 Lines • ▼ Show 20 Line(s) | |||||
978 | 978 | | |||
979 | } | 979 | } | ||
980 | 980 | | |||
981 | void ListPanelFunc::createChecksum() | 981 | void ListPanelFunc::createChecksum() | ||
982 | { | 982 | { | ||
983 | if (!panel->func->files()->isLocal()) | 983 | if (!panel->func->files()->isLocal()) | ||
984 | return; // only local, non-virtual files are supported | 984 | return; // only local, non-virtual files are supported | ||
985 | 985 | | |||
986 | KrViewItemList items; | 986 | const KrViewItemList items = panel->view->getSelectedKrViewItems(); | ||
987 | panel->view->getSelectedKrViewItems(&items); | | |||
988 | 987 | | |||
989 | QStringList fileNames; | 988 | QStringList fileNames; | ||
990 | for (KrViewItem *item : items) { | 989 | for (KrViewItem *item : items) { | ||
991 | FileItem *file = panel->func->getFileItem(item); | 990 | FileItem *file = panel->func->getFileItem(item); | ||
992 | fileNames.append(file->getUrl().fileName()); | 991 | fileNames.append(file->getUrl().fileName()); | ||
993 | } | 992 | } | ||
994 | 993 | | |||
995 | if (fileNames.isEmpty()) | 994 | if (fileNames.isEmpty()) | ||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |