From bbfd392e05fb857ab16862dae6af1fed37dc0790 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Tue, 3 Oct 2023 20:43:41 +0200 Subject: [PATCH] Prefill file name when downloading from the calc --- usblinktreewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usblinktreewidget.cpp b/usblinktreewidget.cpp index 14231c24..c3314569 100644 --- a/usblinktreewidget.cpp +++ b/usblinktreewidget.cpp @@ -295,7 +295,7 @@ void USBLinkTreeWidget::downloadEntry() || context_menu_item->data(0, Qt::UserRole).toBool()) // Is a directory return; - QString dest = QFileDialog::getSaveFileName(this, tr("Chose save location"), QString(), tr("TNS file (*.tns)")); + QString dest = QFileDialog::getSaveFileName(this, tr("Chose save location"), context_menu_item->data(0, Qt::DisplayRole).toString(), tr("TNS file (*.tns)")); if(!dest.isEmpty()) usblink_queue_download(usblink_path_item(context_menu_item).toStdString(), dest.toStdString(), usblink_download_callback, this); }