Hello community, here is the log from the commit of package kig5 for openSUSE:Factory checked in at 2015-02-11 16:43:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kig5 (Old) and /work/SRC/openSUSE:Factory/.kig5.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kig5" Changes: -------- --- /work/SRC/openSUSE:Factory/kig5/kig5.changes 2015-01-29 09:55:43.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.kig5.new/kig5.changes 2015-02-11 16:43:37.000000000 +0100 @@ -1,0 +2,7 @@ +Sun Feb 1 11:26:37 UTC 2015 - tittiatc...@gmail.com + +- Update to KDE Applications 14.12.2 + * KDE Applications 14.12.2 + * See https://www.kde.org/announcements/announce-applications-14.12.2.php + +------------------------------------------------------------------- Old: ---- kig-14.12.1.tar.xz New: ---- kig-14.12.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kig5.spec ++++++ --- /var/tmp/diff_new_pack.sLFzoV/_old 2015-02-11 16:43:38.000000000 +0100 +++ /var/tmp/diff_new_pack.sLFzoV/_new 2015-02-11 16:43:38.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package kig5 # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: kig5 -Version: 14.12.1 +Version: 14.12.2 Release: 0 Summary: Interactive Geometry License: GPL-2.0+ ++++++ kig-14.12.1.tar.xz -> kig-14.12.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kig-14.12.1/kig/kig.cpp new/kig-14.12.2/kig/kig.cpp --- old/kig-14.12.1/kig/kig.cpp 2014-12-27 02:30:11.000000000 +0100 +++ new/kig-14.12.2/kig/kig.cpp 2015-01-18 09:33:03.000000000 +0100 @@ -25,6 +25,7 @@ #include <qtimer.h> #include <QAction> +#include <QStandardPaths> #include <QFileDialog> #include <QUrl> #include <QMimeData> @@ -212,9 +213,21 @@ void Kig::fileOpen() { // this slot is connected to the KStandardAction::open action... - QString file_name = QFileDialog::getOpenFileName(0, QString(), "kfiledialog:///document", m_mimeTypes.join( " " ) ); + QString currentDir = m_part->url().isLocalFile() ? m_part->url().toLocalFile() : QString(); - if (!file_name.isEmpty()) openUrl(file_name); + if ( currentDir.isNull() ) + { + const QStringList documentsPath = QStandardPaths::standardLocations( QStandardPaths::DocumentsLocation ); + + if ( !documentsPath.empty() ) + { + currentDir = documentsPath[0]; + } + } + + const QString file_name = QFileDialog::getOpenFileName(0, QString(), currentDir, m_mimeTypes.join( " " ) ); + + if (!file_name.isEmpty()) openUrl( QUrl::fromLocalFile( file_name ) ); } void Kig::tipOfDay() { -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org