Fix file dialog in render widget

svn path=/branches/KDE4/; revision=2843
parent 8c706769
......@@ -85,6 +85,7 @@ RenderWidget::RenderWidget(QWidget * parent): QDialog(parent) {
m_view.splitter->setStretchFactor(1, 5);
m_view.splitter->setStretchFactor(0, 2);
m_view.out_file->setMode(KFile::File);
focusFirstVisibleItem();
}
......@@ -476,6 +477,7 @@ void RenderWidget::refreshParams() {
} else {
m_view.out_file->setUrl(KUrl(QDir::homePath() + "/untitled." + extension));
}
m_view.out_file->setFilter("*." + extension);
if (item->data(EditableRole).toString().isEmpty()) {
m_view.buttonDelete->setEnabled(false);
......
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