Author Topic: Drag + Drop doesn't work.  (Read 1864 times)

ainstushar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Drag + Drop doesn't work.
« on: May 14, 2015, 08:40:31 am »
Drag + dropping torrent files on qbittorrent (3.2.0) on latest OS X doesn't work.

I get an error "The torrent file does not exist." Happens on a single or multiple file drag + drop.

(duplicate of github. Sorry, wasn't sure if the forum or the github was the main way to get in touch with dev).

Thanks.

ainstushar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Opening multiple torrent files at the same time fails
« Reply #1 on: May 14, 2015, 08:42:33 am »
Opening multiple torrent files at the same time (selecting them in Finder and double-clicking on them) doesn't work. It only brings up the dialog box for one of those files. And that dialog box is unresponsive - I can't use my mouse to click any buttons, but I can use keyboard to navigate. Pressing Esc makes it go away. Kind of bizarre.

Thanks
3.2.0 on latest OSX

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #2 on: May 14, 2015, 12:44:34 pm »
Any spaces or "special characters" in the file names?
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #3 on: May 14, 2015, 12:47:53 pm »
Two  threads on similar topics merged
« Last Edit: May 14, 2015, 12:51:45 pm by ciaobaby »
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #4 on: May 14, 2015, 12:51:09 pm »
Quote
It only brings up the dialog box for one of those files. And that dialog box is unresponsive

The "Add New Topic" dialogue is modal, so you need to close them in the sequence they were opened.

Drag the topmost one to one side until you find the 'bottom' one
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ainstushar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Drag + Drop doesn't work.
« Reply #5 on: May 14, 2015, 09:58:21 pm »
Nope, no special characters (more details at github: https://github.com/qbittorrent/qBittorrent/issues/3000)

The problem with opening multiple file is that I can't click on anything in the dialog box. I try to click OK or Cancel, and it won't let me. I can only use the keyboard to navigate. I think that's definitely a bug. It used to work in the past. Now it's just unresponsive when I open multiple files. Also, on OS X there are no windows for adding files, I can't drag away windows. Screenshot: http://i.imgur.com/MnfqGws.jpg

If I press ESC and get rid of the open dialog box, it makes the whole window unresponsive. It feels like the dialog box steals active window focus away from it and then it doesn't give it back. I can't click on anything. Even the keyboard doesn't work. The close buttons should be red/yellow/green, but they are greyed out, which means that the window can't get focus. Screenshot: http://i.imgur.com/77Sy4MT.jpg. I can't even quit the app (cmd + Q). :(

Also, I am new at reporting bug reports, can you please let me know what is the most efficient place to report bugs/get feedback from dev? github or this forum? Thanks.
« Last Edit: May 14, 2015, 10:21:03 pm by ainstushar »

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #6 on: May 14, 2015, 10:49:56 pm »
[
Quote
quote]. It feels like the dialog box steals active window focus away from it and then it doesn't give it back.
It does, that is what a 'modal' dialogue is, they are used to prevent 'race conditions' by preventing the parent application accessing data or values that is in the process of being changed. So your observations are correct, however, the "focus" should be in 'layers' so that each time you close the one that has focus by cancelling or accepting by pressing OK  will allow the next one in the window stack to get focus, it's a bit like peeling an onion  :'(  :'( 

It works OK on my systems Linux and Windows, if you layout the windows in as cascade (F3) the 'topmost' should be last one.
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ainstushar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Drag + Drop doesn't work.
« Reply #7 on: May 14, 2015, 11:29:21 pm »
I know how modal windows work and this is a buggy behavior. The window prevents me from clicking on anything INSIDE the window. In the screenshot attached, I can't click on OK or Cancel button thats INSIDE the modal window. I know modal windows are supposed to steal focus away from the background, but the problem is that even when I close modal window (by pressing ESC), it doesn't give focus back to the original main window. Please see the attached screenshot. I wish I could record my interaction to help you understand that this is a HUGE problem. People can't add multiple torrents. And I have to force quit the application from activity manager (task manager for mac).

When I press ESC on 1st modal window, the 2nd one should come up (like you said), but it doesn't. And that's preventing me from doing anything inside the app. Like I said, it used to be fine in previous versions when I added multiple files at the same time.

Thanks.
« Last Edit: May 14, 2015, 11:31:03 pm by ainstushar »

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #8 on: May 15, 2015, 03:27:20 pm »
Quote
The window prevents me from clicking on anything INSIDE the window. In the screenshot attached, I can't click on OK or Cancel button thats INSIDE the modal window

That is because you are opening MULTIPLE modal windows, EACH one has 'modality' over the previous one(s), so the ONLY one you can access is the last one opened.

The only "bad behaviour" involved is that qbittorrent allows multiple modal windows to be opened sequentially, but THAT is a criticism that could be thrown at very, very many applications.
There is no 'bug', no 'fault',   just normal 'modal' behaviour.
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ainstushar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Drag + Drop doesn't work.
« Reply #9 on: May 15, 2015, 07:52:56 pm »
I think we are having communication issue. Do you have mac? Can you please try opening multiple torrent files in qBittorrent? I can't click anything inside the top-most modal window. I am well versed in programming to know how modal windows work and where the focus should go. This is a bug. It wasn't in previous versions. I can't do anything when I open multiple torrent files with qBittorrent. I am posting this on github hoping that someone with mac can verify my conundrum.

Thanks.

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #10 on: May 15, 2015, 10:05:38 pm »
No I'm on Linux (and Windows) and there is no problem there.

But in saying there is a problem with "drag and drop" or with the qBT handling  of "drag and drop" is patently and obviously incorrect. If the fault WAS with qBT then no modal windows would appear the fact that they do is demonstrable proof that "drag and drop" IS working, the fact that it appears your OS is not ordering the modal windows correctly is not necessarily a QBT fault.

And yes it does need more Mac OS users to provide information from their system.
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Drag + Drop doesn't work.
« Reply #11 on: May 22, 2015, 10:30:46 pm »
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html