Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
fdee13a0
Commit
fdee13a0
authored
Nov 12, 2008
by
Jean-Baptiste Mardelle
Browse files
When starting kuiserver, revert to Mads' thread trick since my last change did not work
svn path=/branches/KDE4/; revision=2698
parent
02b2b71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderer/renderjob.cpp
View file @
fdee13a0
...
...
@@ -23,6 +23,15 @@
#include <QThread>
#include "renderjob.h"
// Can't believe I need to do this to sleep.
class
SleepThread
:
QThread
{
public:
virtual
void
run
()
{};
static
void
msleep
(
unsigned
long
msecs
)
{
QThread
::
msleep
(
msecs
);
}
};
static
QDBusConnection
connection
(
QLatin1String
(
""
));
RenderJob
::
RenderJob
(
bool
erase
,
const
QString
&
renderer
,
const
QString
&
profile
,
const
QString
&
rendermodule
,
const
QString
&
player
,
const
QString
&
scenelist
,
const
QString
&
dest
,
const
QStringList
&
preargs
,
const
QStringList
&
args
,
int
in
,
int
out
)
:
QObject
(),
m_jobUiserver
(
NULL
)
{
...
...
@@ -83,7 +92,7 @@ void RenderJob::start() {
QTime
t
;
t
.
start
();
while
(
!
interface
->
isServiceRegistered
(
"org.kde.JobViewServer"
)
&&
t
.
elapsed
()
<
3000
)
{
thread
()
->
wait
(
100
);
//Sleep 100 ms
SleepThread
::
msleep
(
100
);
//Sleep 100 ms
}
}
else
{
qDebug
()
<<
"Failed to start kuiserver"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment