← Back to team overview

gtg team mailing list archive

[Bug 583103] Re: Pressing 'delete' key with no task highlighted creates a new task

 

Yep, this is reproducible on current trunk.  Here's the backtrace I got:

2010-08-03 17:25:25,539 - DEBUG - browser:on_task_treeview_button_press_event:1035 - Received button event #1 at 361,338
2010-08-03 17:25:26,903 - DEBUG - browser:on_delete_tasks:1109 - going to delete [None]
2010-08-03 17:25:26,905 - DEBUG - datastore:get_task:126 - requested non-existent task
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/gtk/browser/browser.py", line 1054, in on_task_treeview_key_press_event
    self.on_delete_tasks()
  File "/home/bryce/src/gtg/gtg/GTG/gtk/browser/browser.py", line 1110, in on_delete_tasks
    self.vmanager.ask_delete_tasks(tids_todelete)
  File "/home/bryce/src/gtg/gtg/GTG/gtk/manager.py", line 208, in ask_delete_tasks
    if self.delete_dialog.delete_tasks(tids):
  File "/home/bryce/src/gtg/gtg/GTG/gtk/delete_dialog.py", line 95, in delete_tasks
    recursive_list_tasks(tasks, task)
  File "/home/bryce/src/gtg/gtg/GTG/gtk/delete_dialog.py", line 92, in recursive_list_tasks
    for i in root.get_subtasks():
AttributeError: 'NoneType' object has no attribute 'get_subtasks'

-- 
Pressing 'delete' key with no task highlighted creates a new task
https://bugs.launchpad.net/bugs/583103
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Fix Committed
Status in “gtg” package in Ubuntu: Triaged

Bug description:
Binary package hint: gtg

PROBLEM ENCOUNTERED

Pressing the "delete" key when no task is highlighted has the unexpected behavior of creating a new task.

HOW TO REPRODUCE

1. Open the main tasks window.
2. With no task highlighted, press the "delete" key.
3. An window will open with the "Are you sure you want to delete this task?" dialog, for a task called "- My New Task". At the same time, a task called My New Task will be created in the main tasks window (visible behind the dialog).
4. Click on either option or hit enter. It doesn't matter. The new task is still there.

EXPECTED BEHAVIOR

Pressing delete with no task highlighted will have no effect,
AND POSSIBLY after you have deleted one task, the next one in line will be highlighted.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gtg 0.2.4-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Wed May 19 19:14:44 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gtg