Commit 4f1a759a authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed close button on file selection dialog.

parent 57bd1f44
...@@ -521,13 +521,13 @@ void CoWowQt::CreateFileSelDia(const char* title, void* parent_ctx, ...@@ -521,13 +521,13 @@ void CoWowQt::CreateFileSelDia(const char* title, void* parent_ctx,
QString filename = QFileDialog::getOpenFileName( QString filename = QFileDialog::getOpenFileName(
object->parent_wid, fl(title), fl(folder), filter); object->parent_wid, fl(title), fl(folder), filter);
if (!filename.isNull()) { if (!filename.isEmpty()) {
strcpy(fname, qPrintable(filename)); strcpy(fname, qPrintable(filename));
}
if (file_selected_cb) { if (file_selected_cb) {
(file_selected_cb)(parent_ctx, fname, file_type); (file_selected_cb)(parent_ctx, fname, file_type);
} }
}
} }
CoWowTimer* CoWowQt::timer_new() CoWowTimer* CoWowQt::timer_new()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment