[calligra/calligra/2.8] libs/widgets: Fix: no file formats shown in save dialogs

Jaroslaw Staniek staniek at kde.org
Mon Jun 30 09:07:43 BST 2014


On 30 June 2014 09:56, Cyrille Berger <cberger at cberger.net> wrote:
> Git commit cf804b42cb313d53729a4535622bda66951e6e42 by Cyrille Berger.
> Committed on 30/06/2014 at 07:54.
> Pushed by berger into branch 'calligra/2.8'.
>
> Fix: no file formats shown in save dialogs
>
> Backports KoFileDialog from master.
> Tested on several applications, seem to work, but if someone else could test and confirm ?
>
> CCMAIL: calligra-devel at kde.org
>
> M  +261  -208  libs/widgets/KoFileDialog.cpp
> M  +62   -19   libs/widgets/KoFileDialog.h
>
> http://commits.kde.org/calligra/cf804b42cb313d53729a4535622bda66951e6e42
>
> diff --git a/libs/widgets/KoFileDialog.cpp b/libs/widgets/KoFileDialog.cpp
> index 534ab9e..eb02a00 100644
> --- a/libs/widgets/KoFileDialog.cpp
> +++ b/libs/widgets/KoFileDialog.cpp
> @@ -21,12 +21,12 @@

[...]
> +        //
> +        // Only show the GTK dialog in Gnome, where people deserve it
> +#ifdef Q_WS_X11
> +    if (qgetenv("KDE_FULL_SESSION").size() > 0) {
> +        useStaticForNative = true;
> +    }
> +    if (qgetenv("XDG_CURRENT_DESKTOP") == "GNOME") {
> +        useStaticForNative = true;
> +    }


How about adding this very popular possibility too?

if (qgetenv("XDG_CURRENT_DESKTOP").toLower() == "unity")


J.




-- 
regards / pozdrawiam, Jaroslaw Staniek
 Kexi & Calligra & KDE | http://calligra.org/kexi | http://kde.org
 Qt for Tizen | http://qt-project.org/wiki/Tizen
 Qt Certified Specialist | http://www.linkedin.com/in/jstaniek



More information about the calligra-devel mailing list