Revision: 35060
http://xbmc.svn.sourceforge.net/xbmc/?rev=35060&view=rev
Author: theuni
Date: 2010-10-28 15:58:51 +0000 (Thu, 28 Oct 2010)
Log Message:
-----------
changed: always include local drives in add-on settings folder browse dialogs
(cherry picked from commit f1f2f3df786c322ced8abd87dc9a4a8b2bd39cf4)
Modified Paths:
--------------
branches/Dharma/xbmc/GUIDialogAddonSettings.cpp
Modified: branches/Dharma/xbmc/GUIDialogAddonSettings.cpp
===================================================================
--- branches/Dharma/xbmc/GUIDialogAddonSettings.cpp 2010-10-28 15:58:44 UTC (rev 35059)
+++ branches/Dharma/xbmc/GUIDialogAddonSettings.cpp 2010-10-28 15:58:51 UTC (rev 35060)
@@ -288,8 +288,12 @@
if (!source || strcmpi(source, "local") != 0)
g_mediaManager.GetNetworkLocations(networkShares);
localShares.insert(localShares.end(), networkShares.begin(), networkShares.end());
- shares = &localShares;
}
+ else // always append local drives
+ {
+ localShares = *shares;
+ g_mediaManager.GetLocalDrives(localShares);
+ }
if (strcmpi(type, "folder") == 0)
{
@@ -298,12 +302,12 @@
if (option)
bWriteOnly = (strcmpi(option, "writeable") == 0);
- if (CGUIDialogFileBrowser::ShowAndGetDirectory(*shares, label, value, bWriteOnly))
+ if (CGUIDialogFileBrowser::ShowAndGetDirectory(localShares, label, value, bWriteOnly))
((CGUIButtonControl*) control)->SetLabel2(value);
}
else if (strcmpi(type, "image") == 0)
{
- if (CGUIDialogFileBrowser::ShowAndGetImage(*shares, label, value))
+ if (CGUIDialogFileBrowser::ShowAndGetImage(localShares, label, value))
((CGUIButtonControl*) control)->SetLabel2(value);
}
else
@@ -348,7 +352,7 @@
bUseFileDirectories = find(options.begin(), options.end(), "treatasfolder") != options.end();
}
- if (CGUIDialogFileBrowser::ShowAndGetFile(*shares, strMask, label, value))
+ if (CGUIDialogFileBrowser::ShowAndGetFile(localShares, strMask, label, value))
((CGUIButtonControl*) control)->SetLabel2(value);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|