When multpile files are selected for import and Enter is pressed, only the last file is imported

Bug #936748 reported by Aditya V
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Confirmed
Medium
Unassigned

Bug Description

Details:
 - Ubuntu 12.04 (Alpha 2)
 - Installed through PPA
 - Openshot 1.4.2

I wanted to select three video files to import (going to mash them together), so I clicked the plus-sign at the top of Openshot and went to my Videos folder. left-clicked on the first file, held down shift, then clicked on the third file. This selected all 3 of my files. I then pressed Enter, but only the last file was imported. I removed the imported file from the project, then proceeded to checking if clicking the "Add" button at the bottom left of the import dialog would have the same behavior. This was not the case - when I clicked "Add" instead of pressing Enter, all 3 of the files were imported as expected.

I would assume there should be no difference in behavior between pressing Enter and clicking "Add", so I decided to file this bug report.

Thanks in advance!

moimael (moimael)
Changed in openshot:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.5.0
Revision history for this message
Patrick Rooney (patrick-rooney90) wrote :

I've discovered it's a very simple problem: unless you press Tab so that the focus is on the "Add" button, it will only select whatever you clicked last if you press Enter.

Revision history for this message
case86 (komackaj) wrote :

Hi,

I believe I've found the reason why ENTER is behaving in a non-standard way (on pyGTK tutorial at http://www.pygtk.org/pygtk2tutorial/examples/filechooser.py with added call dialog.set_select_multiple(True) before running dialog, ENTER works as expected).

I attach an patch proposing to make Add button in dialog a default button. Patch should apply against revision 742 in trunk, tested on Ubuntu 12.04.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Thanks a lot case86. Crossed fingers if this version will be out one day.

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.