Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/listpanel.cpp
Show First 20 Lines • Show All 873 Lines • ▼ Show 20 Line(s) | 871 | { | |||
---|---|---|---|---|---|
874 | PanelContextMenu::run(QPoint(loc.x() + 5, loc.y() + j), this); | 874 | PanelContextMenu::run(QPoint(loc.x() + 5, loc.y() + j), this); | ||
875 | } | 875 | } | ||
876 | 876 | | |||
877 | void ListPanel::popEmptyRightClickMenu(const QPoint &loc) | 877 | void ListPanel::popEmptyRightClickMenu(const QPoint &loc) | ||
878 | { | 878 | { | ||
879 | PanelContextMenu::run(loc, this); | 879 | PanelContextMenu::run(loc, this); | ||
880 | } | 880 | } | ||
881 | 881 | | |||
882 | QString ListPanel::getCurrentName() | 882 | QString ListPanel::getCurrentName() const | ||
883 | { | 883 | { | ||
884 | QString name = view->getCurrentItem(); | 884 | const QString name = view->getCurrentItem(); | ||
885 | if (name != "..") | 885 | return name == ".." ? QString() : name; | ||
886 | return name; | | |||
887 | else | | |||
888 | return QString(); | | |||
889 | } | 886 | } | ||
890 | 887 | | |||
891 | QStringList ListPanel::getSelectedNames() | 888 | QStringList ListPanel::getSelectedNames() | ||
892 | { | 889 | { | ||
893 | QStringList fileNames; | 890 | QStringList fileNames; | ||
894 | view->getSelectedItems(&fileNames); | 891 | view->getSelectedItems(&fileNames); | ||
895 | return fileNames; | 892 | return fileNames; | ||
896 | } | 893 | } | ||
▲ Show 20 Lines • Show All 483 Lines • Show Last 20 Lines |