Author Topic: Dragging a second video should replace the current first video (NOT append it)  (Read 414 times)

pstein

  • Jr. Member
  • **
  • Posts: 75
Assume I loaded a first video into Avidemux.

When I drag now a second video from WinExplorer onto it then the second video is appended at the end of the first.

How can change this default action?

In the future a drag should REPLACE the current video.

I don't want to manually have to close the first.
This should take place automatically (auto-close).

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6052
other users want the append option ;)

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2193
Apply the following patch and rebuild Avidemux:

Code: [Select]
diff --git a/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp b/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp
index 129b6b0f..e30fdaf1 100644
--- a/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp
+++ b/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp
@@ -1471,10 +1471,7 @@ void MainWindow::openFiles(QList<QUrl> urlList)
 
         if (info.isFile())
         {
-            if (avifileinfo)
-                A_appendVideo(fileName.toUtf8().constData());
-            else
-                A_openVideo(fileName.toUtf8().constData());
+            A_openVideo(fileName.toUtf8().constData());
             // Set lastdir_read on drag'n'drop here instead of centrally in
             // A_openVideo or in A_appendVideo to better deal with situations
             // where videos are loaded from a project script in a different location.

Quote
In the future a drag should REPLACE the current video.

No, I don't agree. Ctrl+W is handy to close a video, no need to break useful functionality for that.

fish

  • Jr. Member
  • **
  • Posts: 78
Assume I loaded a first video into Avidemux.

When I drag now a second video from WinExplorer onto it then the second video is appended at the end of the first.

How can change this default action?

In the future a drag should REPLACE the current video.

I don't want to manually have to close the first.
This should take place automatically (auto-close).



I disagree, I find this append function very useful. In addition your suggestion makes it likely that quite a bit of editing could be lost, if work on one file is closed, by dragging a file in accidently.
« Last Edit: June 11, 2018, 11:59:53 AM by fish »

hiro

  • Newbie
  • *
  • Posts: 40
Hi,

In the future a drag should REPLACE the current video.

Hey: not at all. Append-by-default is VERY useful! I'm voting to keep this feature as is;

+ hitting Ctrl+W is not exactly difficult.

But (of course), it depends on one's main use of ADM. MAY BE, instead of recompiling, could a new 'Preference' be added, to disable 'auto-append' when needed?


.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2193
MAY BE, instead of recompiling, could a new 'Preference' be added, to disable 'auto-append' when needed?

This is not what auto-append means. And no, no new preference for an anti-feature which makes zero sense. EOD, please.