From c90b45f88cf38eba34e8072ccc1771471a37f581 Mon Sep 17 00:00:00 2001 From: El Mostafa Idrassi Date: Tue, 15 Oct 2019 23:43:34 +0100 Subject: Fixed drag and drop not showing correct path, specifically under GTK-3. (#520) --- src/Main/Forms/KeyfilesPanel.cpp | 2 -- src/Main/Forms/MainFrame.cpp | 2 -- src/Main/Forms/VolumePasswordPanel.cpp | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/Main/Forms/KeyfilesPanel.cpp b/src/Main/Forms/KeyfilesPanel.cpp index 71077e81..c1f26d86 100644 --- a/src/Main/Forms/KeyfilesPanel.cpp +++ b/src/Main/Forms/KeyfilesPanel.cpp @@ -59,10 +59,8 @@ namespace VeraCrypt SetDropTarget (new FileDropTarget (this)); KeyfilesListCtrl->SetDropTarget (new FileDropTarget (this)); -#ifdef TC_MACOSX foreach (wxWindow *c, GetChildren()) c->SetDropTarget (new FileDropTarget (this)); -#endif UpdateButtons(); } diff --git a/src/Main/Forms/MainFrame.cpp b/src/Main/Forms/MainFrame.cpp index ad5bf5b3..9abe2552 100644 --- a/src/Main/Forms/MainFrame.cpp +++ b/src/Main/Forms/MainFrame.cpp @@ -393,10 +393,8 @@ namespace VeraCrypt }; SetDropTarget (new FileDropTarget (this)); -#ifdef TC_MACOSX foreach (wxWindow *c, MainPanel->GetChildren()) c->SetDropTarget (new FileDropTarget (this)); -#endif // Volume history VolumeHistory::ConnectComboBox (VolumePathComboBox); diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp index 2859762c..8d5e8bc5 100644 --- a/src/Main/Forms/VolumePasswordPanel.cpp +++ b/src/Main/Forms/VolumePasswordPanel.cpp @@ -159,10 +159,8 @@ namespace VeraCrypt if (enableKeyfiles) { SetDropTarget (new FileDropTarget (this)); -#ifdef TC_MACOSX foreach (wxWindow *c, GetChildren()) c->SetDropTarget (new FileDropTarget (this)); -#endif } Layout(); -- cgit v1.2.3