mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-06 08:42:36 -08:00
Add test for drag and drop database files into main window
This commit is contained in:
1 parent
165d664524
commit
3720c5ef79
3 files changed
+41
No files matched your search
@@ -1035,6 +1035,9 @@ void MainWindow::dropEvent(QDropEvent* event)
|
||||
const QMimeData* mimeData = event->mimeData();
|
||||
if (mimeData->hasUrls()) {
|
||||
const QStringList kdbxFiles = kdbxFilesFromUrls(mimeData->urls());
|
||||
if (!kdbxFiles.isEmpty()) {
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
for (const QString& kdbxFile: kdbxFiles) {
|
||||
openDatabase(kdbxFile);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user