[banshee] [PodcastSubscribeDialog] Trim URL pasted from clipboard (BGO#585679)
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] [PodcastSubscribeDialog] Trim URL pasted from clipboard (BGO#585679)
- Date: Sat, 13 Jun 2009 18:09:36 -0400 (EDT)
commit dc0e01dc8ceeb229df4675f90eeeed3c41d6eb52
Author: Pratik Patel <pkpatel88 gmail com>
Date: Sun Jun 14 00:05:19 2009 +0200
[PodcastSubscribeDialog] Trim URL pasted from clipboard (BGO#585679)
Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>
.../Dialog/PodcastSubscribeDialog.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastManager/Dialog/PodcastSubscribeDialog.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastManager/Dialog/PodcastSubscribeDialog.cs
index 8eb6a62..afecbce 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastManager/Dialog/PodcastSubscribeDialog.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastManager/Dialog/PodcastSubscribeDialog.cs
@@ -132,8 +132,8 @@ namespace Banshee.Podcasting.Gui
string pasted = clipboard.WaitForText ();
if (!String.IsNullOrEmpty (pasted)) {
if (pasted.StartsWith ("http")) {
- url_entry.Text = pasted;
- url_entry.SelectRegion (0, pasted.Length);
+ url_entry.Text = pasted.Trim ();
+ url_entry.SelectRegion (0, url_entry.Text.Length);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]