------------------------------------------------------------
revno: 2806
committer: poy <[email protected]>
branch nick: trunk
timestamp: Sun 2012-01-08 17:45:11 +0100
message:
add a status message when searching within a partial file list
modified:
win32/DirectoryListingFrame.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/DirectoryListingFrame.cpp'
--- win32/DirectoryListingFrame.cpp 2012-01-08 16:28:26 +0000
+++ win32/DirectoryListingFrame.cpp 2012-01-08 16:45:11 +0000
@@ -1232,12 +1232,19 @@
vector<HTREEITEM> collapse;
bool cycle = false;
+ bool incomplete = false;
const auto fileSel = files->getSelected();
HTREEITEM item = start;
auto pos = fileSel;
while(true) {
+ if(!incomplete && item) {
+ auto data = dirs->getData(item);
+ if(data && !data->dir->getComplete())
+ incomplete = true;
+ }
+
// try to match the names currently in the list pane
const int n = files->size();
if(reverse && pos == -1)
@@ -1308,6 +1315,12 @@
finalStatus = str(TF_("No matches found for: %1%") % findStr);
}
+
+ if(incomplete) {
+ if(!finalStatus.empty())
+ finalStatus += _T(" ");
+ finalStatus += T_("[Ignored some incomplete directories]");
+ }
}
void DirectoryListingFrame::runUserCommand(const UserCommand& uc) {
_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help : https://help.launchpad.net/ListHelp