Open own list when using get/browse file list on self

Bug #1225420 reported by inactive
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DC++
Fix Released
Wishlist
Unassigned
DiCe!++
In Progress
Undecided
Unassigned

Bug Description

Feature|Mod

Issue: When attempting to "download" your own filelist via the userlist (rightclick -> get filelist) you're greeted with the status/warning-message: "You're trying to download from yourself!" and the action is thus canceled.

Suggestion: If it's not meant to be used then either remove it or change it so that the user can OPEN his own list via the user-list menu.

description: updated
description: updated
description: updated
summary: - "You're trying to download from yourself!"
+ Feat|Mod: "You're trying to download from yourself!"
description: updated
description: updated
description: updated
description: updated
Revision history for this message
eMTee (realprogger) wrote : Re: Feat|Mod: "You're trying to download from yourself!"

It's the same error message you get from any lists, actually it's generated when you try to add yourself as a source for any queue item.
The message itself is OK, however it would be nice to either remove the file list related context menus for own CID or better open the own list instead of trying to add a filelist item to the queue.

Changed in dcplusplus:
status: New → Confirmed
importance: Undecided → Wishlist
iceman50 (bdcdevel)
Changed in diceplusplus:
status: New → In Progress
Fredrik Ullner (ullner)
summary: - Feat|Mod: "You're trying to download from yourself!"
+ Open own list when using get/browse file list on self
Revision history for this message
Fredrik Ullner (ullner) wrote :

Attached patch is using an exception as system logic. I don't know if this is acceptable or not, it was simply to avoid having to check for 'self' multiple times.

Changed in dcplusplus:
status: Confirmed → In Progress
Revision history for this message
poy (poy) wrote :

that's inventive... it's fine by me. :)

however:

1) make QueueSelfException derive from QueueException instead of Exception, so that callers catching QueueException would still be able to receive QueueSelfExceptions.

2) can you check how this works from searches and finished transfer windows? these use WinUtil::addUserItems, which might benefit from these changes as well.

Revision history for this message
Fredrik Ullner (ullner) wrote :

1. Included in this patch. I added ability to extend an exception in Exception.h

2. You can't select yourself in the searchframe or finished downloads so that won't be applicable...

Revision history for this message
poy (poy) wrote :

perfect, push it! :)

Fredrik Ullner (ullner)
Changed in dcplusplus:
status: In Progress → Fix Committed
Fredrik Ullner (ullner)
tags: removed: download-yourself usermenu
Revision history for this message
poy (poy) wrote :

Fixed in DC++ 0.840.

Changed in dcplusplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.