[banshee] [FolderImportSource] Allow selection of multiple folders (BGO#586946)



commit a181622aab3d0650626279473a0a214ffb63d268
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jun 25 22:34:49 2009 +0200

    [FolderImportSource] Allow selection of multiple folders (BGO#586946)
    
    The labels are left as "Folder", to avoid any unnecessary confusion.

 .../Banshee.Library.Gui/FolderImportSource.cs      |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/FolderImportSource.cs b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/FolderImportSource.cs
index f366a2f..5e3ad90 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/FolderImportSource.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/FolderImportSource.cs
@@ -47,11 +47,12 @@ namespace Banshee.Library.Gui
             
             chooser.AddButton (Stock.Cancel, ResponseType.Cancel);
             chooser.AddButton (Stock.Open, ResponseType.Ok);
+            chooser.SelectMultiple = true;
             chooser.DefaultResponse = ResponseType.Ok;
             FileImportSource.SetChooserShortcuts (chooser);
             
             if (chooser.Run () == (int)ResponseType.Ok) {
-                Banshee.ServiceStack.ServiceManager.Get<LibraryImportManager> ().Enqueue (chooser.Uri);
+                Banshee.ServiceStack.ServiceManager.Get<LibraryImportManager> ().Enqueue (chooser.Uris);
             }
             
             chooser.Destroy ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]