]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QGraphicsDialog.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QGraphicsDialog.C
index 963cda65237258fd8e6a21682eb4bdbc324aa615..99fee73aad16b608f62b32cfac915fe745b65da9 100644 (file)
@@ -87,13 +87,10 @@ void QGraphicsDialog::closeEvent(QCloseEvent * e)
 
 void QGraphicsDialog::browse_clicked()
 {
-       QString file = QFileDialog::getOpenFileName(
-               QString::null, qt_("Files (*)"),
-               this, 0, qt_("Select graphics file"));
-       if (!file.isNull()) {
-               filename->setText(file);
-               form_->changed();
-       }
+       string const str = 
+               form_->controller().Browse(fromqstr(filename->text()));
+       filename->setText(toqstr(str));
+       form_->changed();
 }