mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
okular: hack for KMediaPlayer
see 47ec323674
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
dde11052a3
commit
436bb16561
1 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,16 @@
|
|||
#include "okular_main.h"
|
||||
#include "shellutils.h"
|
||||
|
||||
// NOTE: this has to be done before application instance is created and KMediaPlayer requires it,
|
||||
// i.e. it is too late to do it from the kmediaplayer library itself if it is dlopen-ed
|
||||
#if defined(Q_WS_X11)
|
||||
static int okular_x11_init_threads() {
|
||||
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
|
||||
return 1;
|
||||
};
|
||||
Q_CONSTRUCTOR_FUNCTION(okular_x11_init_threads)
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
KAboutData about = okularAboutData( "okular", I18N_NOOP( "Okular" ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue