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 f0f72e73 authored by David Narváez's avatar David Narváez

Get URL of File to Open

QFileDialog::getOpenFile returns just the name w/o the protocol
parent 44f046b3
......@@ -214,7 +214,7 @@ void Kig::fileOpen()
// this slot is connected to the KStandardAction::open action...
QString file_name = QFileDialog::getOpenFileName(0, QString(), "kfiledialog:///document", m_mimeTypes.join( " " ) );
if (!file_name.isEmpty()) openUrl(file_name);
if (!file_name.isEmpty()) openUrl( QUrl::fromLocalFile( file_name ) );
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