2
0
forked from Ivasoft/DSView

Fix issue #266, double-click open dsl file on Windows

This commit is contained in:
DreamSourceLab
2020-05-08 16:42:33 +08:00
parent 26d695837e
commit 9a06b706de
2 changed files with 38 additions and 6 deletions

View File

@@ -109,7 +109,8 @@ MainWindow::MainWindow(DeviceManager &device_manager,
{
setup_ui();
if (open_file_name) {
const QString s(QString::fromUtf8(open_file_name));
qDebug("Open file: %s", open_file_name);
const QString s(QString::fromUtf8(open_file_name));
QMetaObject::invokeMethod(this, "load_file",
Qt::QueuedConnection,
Q_ARG(QString, s));