Dragging a second video should replace the current first video (NOT append it)

Started by pstein, June 10, 2018, 03:31:06 PM

Previous topic - Next topic

pstein

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).


eumagga0x2a

Apply the following patch and rebuild Avidemux:

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.


QuoteIn 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

Quote from: pstein on June 10, 2018, 03:31:06 PM
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.

hiro

Hi,

Quote from: pstein on June 10, 2018, 03:31:06 PMIn 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

Quote from: hiro on June 23, 2018, 03:18:56 PMMAY 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.