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

pstein

  • Jr. Member
  • **
  • Posts: 72
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: 5952
other users want the append option ;)

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1953
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: 73
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 »