From 535f5dfc67e7b8c387d54a7776e5f480041636c1 Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 4 Jan 2014 12:13:05 +0100 Subject: [PATCH] gui/dboxinfo: show remote volumes, too --- src/gui/dboxinfo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index f630b9084..4f0c01630 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -276,10 +276,9 @@ void CDBoxInfoWidget::paint() std::string line; while (getline(in, line)) { - if ((line.at(0) != '/') && (line.find("rootfs") != 0)) - continue; + size_t firstslash = line.find_first_of('/'); size_t firstspace = line.find_first_of(' '); - if (firstspace != string::npos) { + if ( (firstspace != string::npos && firstslash != string::npos && firstslash < firstspace) || (line.find("rootfs") == 0) ) { firstspace++; size_t nextspace = line.find_first_of(' ', firstspace); if (nextspace == string::npos || line.find("nodev", nextspace + 1) != string::npos)