Commit 87a00c3f authored by Albert Astals Cid's avatar Albert Astals Cid

use the new kfiledialog:/// variant that let's you both specify a keyword and a filename

ok'ed by pino

svn path=/trunk/KDE/kdegraphics/okular/; revision=951941
parent 9f3163ee
......@@ -1437,7 +1437,7 @@ void Part::slotSaveFileAs()
if ( m_embedMode == PrintPreviewMode )
return;
KUrl saveUrl = KFileDialog::getSaveUrl( url().isLocalFile() ? url().url() : url().fileName(), QString(), widget() );
KUrl saveUrl = KFileDialog::getSaveUrl( KUrl("kfiledialog:///okular/" + url().fileName()), QString(), widget() );
if ( !saveUrl.isValid() || saveUrl.isEmpty() )
return;
......@@ -1492,7 +1492,7 @@ void Part::slotSaveCopyAs()
if ( m_embedMode == PrintPreviewMode )
return;
KUrl saveUrl = KFileDialog::getSaveUrl( url().isLocalFile() ? url().url() : url().fileName(), QString(), widget() );
KUrl saveUrl = KFileDialog::getSaveUrl( KUrl("kfiledialog:///okular/" + url().fileName()), QString(), widget() );
if ( saveUrl.isValid() && !saveUrl.isEmpty() )
{
if ( KIO::NetAccess::exists( saveUrl, KIO::NetAccess::DestinationSide, widget() ) )
......
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