Skip to content

Commit

Permalink
Prefill file name when downloading from the calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Oct 13, 2024
1 parent 8e160eb commit 5b2a1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usblinktreewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,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);
}
Expand Down

0 comments on commit 5b2a1a3

Please sign in to comment.