Line
Link Here
|
0 |
-- shell/source/backends/kdebe/kdebecdef.cxx |
0 |
++ shell/source/backends/kdebe/kdebecdef.cxx |
Lines 49-54
Link Here
|
49 |
#include <com/sun/star/uno/XComponentContext.hpp> |
49 |
#include <com/sun/star/uno/XComponentContext.hpp> |
50 |
#endif |
50 |
#endif |
51 |
|
51 |
|
|
|
52 |
#include <kapplication.h> |
53 |
|
52 |
#include "uno/current_context.hxx" |
54 |
#include "uno/current_context.hxx" |
53 |
|
55 |
|
54 |
namespace css = com::sun::star ; |
56 |
namespace css = com::sun::star ; |
Lines 69-75
Link Here
|
69 |
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "system.desktop-environment" ) ) ); |
71 |
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "system.desktop-environment" ) ) ); |
70 |
|
72 |
|
71 |
rtl::OUString aDesktopEnvironment; |
73 |
rtl::OUString aDesktopEnvironment; |
72 |
if ( (aValue >>= aDesktopEnvironment) && (aDesktopEnvironment.equalsAscii("KDE")) ) |
74 |
if ( (aValue >>= aDesktopEnvironment) && (aDesktopEnvironment.equalsAscii("KDE")) && (KApplication::kApplication() != NULL)) |
73 |
return * KDEBackend::createInstance(xContext); |
75 |
return * KDEBackend::createInstance(xContext); |
74 |
} |
76 |
} |
75 |
|
77 |
|