Merge lp://qastaging/~jpds/do-plugins/notification-error-messages into lp://qastaging/do-plugins

Proposed by Jonathan Davies
Status: Superseded
Proposed branch: lp://qastaging/~jpds/do-plugins/notification-error-messages
Merge into: lp://qastaging/do-plugins
Diff against target: None lines
To merge this branch: bzr merge lp://qastaging/~jpds/do-plugins/notification-error-messages
Reviewer Review Type Date Requested Status
Do Plugins Team Pending
Review via email: mp+4473@code.qastaging.launchpad.net

This proposal has been superseded by a proposal from 2009-03-26.

To post a comment you must log in.
Revision history for this message
Jonathan Davies (jpds) wrote :

Instead of returning Do saying that there was an error pasting text, throw a notification bubble if no text is provided.

572. By Jonathan Davies

Changed exception for a yield break.

573. By Jonathan Davies

Change error occured while pasting to notification bubble too.

574. By Jonathan Davies

LocateFiles: Use notification bubbles for errors and messages.

575. By Jonathan Davies

* RememberTheMilk: Added a notification bubble pop-up if no new task name is
  provided.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Pastebin/src/PastebinAction.cs'
2--- Pastebin/src/PastebinAction.cs 2009-01-02 06:17:21 +0000
3+++ Pastebin/src/PastebinAction.cs 2009-03-13 22:26:52 +0000
4@@ -96,6 +96,13 @@
5 text += titem.Text;
6 }
7
8+ if (string.IsNullOrEmpty(text))
9+ {
10+ Services.Notifications.Notify("Pastebin",
11+ "No text provided for pasting.");
12+ throw new ArgumentNullException();
13+ }
14+
15 IPastebinProvider pastebinProvider = null;
16
17 if (modifierItems.Any ()) {

Subscribers

People subscribed via source and target branches