[f-spot] Fixes bnc#684969 and bgo#647500
- From: Stephen Shaw <sshaw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Fixes bnc#684969 and bgo#647500
- Date: Mon, 5 Mar 2012 23:11:02 +0000 (UTC)
commit cb0017ddc1812544fbd93d9b1c3dbaeeebc44498
Author: Stephen Shaw <sshaw decriptor com>
Date: Mon Mar 5 16:07:20 2012 -0700
Fixes bnc#684969 and bgo#647500
The fix is based on the patch provided by
Stefan Sauer
I converted the accounts from ArrayList to
List and so unboxing is no longer required.
.../FSpot.Exporters.Gallery/GalleryExport.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/GalleryExport.cs b/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/GalleryExport.cs
index 25506ab..a7bd093 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/GalleryExport.cs
+++ b/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/GalleryExport.cs
@@ -269,7 +269,10 @@ namespace FSpot.Exporters.Gallery
try {
if (accounts.Count != 0 && connect) {
if (selected == null)
- account = accounts [gallery_optionmenu.Active];
+ if (gallery_optionmenu.Active != -1)
+ account = accounts [gallery_optionmenu.Active];
+ else
+ account = accounts [0];
else
account = selected;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]