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