Fixed drag and drop not showing correct path, specifically under GTK-3. (#520)

This commit is contained in:
El Mostafa Idrassi authored and Mounir IDRASSI committed 2019-10-16 00:43:34 +02:00
1 parent 2675a9c60e
commit c90b45f88c
3 files changed
-6

No files matched your search

-2
View File
@@ -59,10 +59,8 @@ namespace VeraCrypt
SetDropTarget (new FileDropTarget (this)); SetDropTarget (new FileDropTarget (this));
KeyfilesListCtrl->SetDropTarget (new FileDropTarget (this)); KeyfilesListCtrl->SetDropTarget (new FileDropTarget (this));
#ifdef TC_MACOSX
foreach (wxWindow *c, GetChildren()) foreach (wxWindow *c, GetChildren())
c->SetDropTarget (new FileDropTarget (this)); c->SetDropTarget (new FileDropTarget (this));
#endif
UpdateButtons(); UpdateButtons();
} }
-2
View File
@@ -393,10 +393,8 @@ namespace VeraCrypt
}; };
SetDropTarget (new FileDropTarget (this)); SetDropTarget (new FileDropTarget (this));
#ifdef TC_MACOSX
foreach (wxWindow *c, MainPanel->GetChildren()) foreach (wxWindow *c, MainPanel->GetChildren())
c->SetDropTarget (new FileDropTarget (this)); c->SetDropTarget (new FileDropTarget (this));
#endif
// Volume history // Volume history
VolumeHistory::ConnectComboBox (VolumePathComboBox); VolumeHistory::ConnectComboBox (VolumePathComboBox);
-2
View File
@@ -159,10 +159,8 @@ namespace VeraCrypt
if (enableKeyfiles) if (enableKeyfiles)
{ {
SetDropTarget (new FileDropTarget (this)); SetDropTarget (new FileDropTarget (this));
#ifdef TC_MACOSX
foreach (wxWindow *c, GetChildren()) foreach (wxWindow *c, GetChildren())
c->SetDropTarget (new FileDropTarget (this)); c->SetDropTarget (new FileDropTarget (this));
#endif
} }
Layout(); Layout();