Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2016-04-15 15:18:17 +0300
committertherzok <marius.ungureanu@xamarin.com>2016-04-15 15:18:17 +0300
commitdd1857574ec2f5a5bb8b08f2862b7b43e8011d76 (patch)
treeda4ffb864c1ba8f78b8ca5a5088dc3fd62c7f07c /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads
parent135233c3af0fa0516109a599b7b5346f57039715 (diff)
[Ide] Error list pad not taking into account a sorted model.
When getting an iter from a sorted model, the store is not guaranteed to have the same iter paths. Use the view's treemodel to get the element to ensure same elements are being used. Bug 40157 - [Error Pad] Inverted click when errors/warnings are sorted descending
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs
index 84af894b25..3d8bbfd7e8 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs
@@ -923,8 +923,9 @@ namespace MonoDevelop.Ide.Gui.Pads
private void ItemToggled (object o, ToggledArgs args)
{
Gtk.TreeIter iter;
- if (store.GetIterFromString (out iter, args.Path)) {
- TaskListEntry task = (TaskListEntry)store.GetValue (iter, DataColumns.Task);
+
+ if (view.Model.GetIterFromString (out iter, args.Path)) {
+ TaskListEntry task = (TaskListEntry)view.Model.GetValue (iter, DataColumns.Task);
task.Completed = !task.Completed;
TaskService.FireTaskToggleEvent (this, new TaskEventArgs (task));
}