Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 9685a13c authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix the list of file types in Kig 'Open File' dialog

BUG: 343839
Differential Revision:
parent 7f8d21fb
......@@ -218,9 +218,19 @@ void Kig::fileOpen()
currentDir = QStandardPaths::writableLocation( QStandardPaths::DocumentsLocation );
const QString file_name = QFileDialog::getOpenFileName(0, QString(), currentDir, m_mimeTypes.join( " " ) );
if (!file_name.isEmpty()) openUrl( QUrl::fromLocalFile( file_name ) );
QPointer<QFileDialog> fileOpenDialog = new QFileDialog(this);
fileOpenDialog->setWindowTitle(i18nc("@title:window", "Open File"));
if (fileOpenDialog->exec() == QDialog::Accepted) {
QUrl file_url = fileOpenDialog->selectedUrls().first();
if (!file_url.isEmpty()) {
openUrl( file_url );
delete fileOpenDialog;
void Kig::tipOfDay() {
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