projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to be more careful when loading FrameInfos from disk.
[dcpomatic.git]
/
src
/
wx
/
job_manager_view.cc
diff --git
a/src/wx/job_manager_view.cc
b/src/wx/job_manager_view.cc
index 20f885a9b284cf7b8b0b12256413bf1ea3f618f3..b627edc2f31be8b7cc20b71a503bf90765f35787 100644
(file)
--- a/
src/wx/job_manager_view.cc
+++ b/
src/wx/job_manager_view.cc
@@
-43,7
+43,6
@@
public:
, _window (window)
, _panel (panel)
, _table (table)
, _window (window)
, _panel (panel)
, _table (table)
- , _needs_pulse (false)
{
int n = 0;
{
int n = 0;
@@
-86,11
+85,9
@@
public:
void maybe_pulse ()
{
void maybe_pulse ()
{
- if (_job->running() && _
needs_pulse
) {
+ if (_job->running() && _
job->progress_unknown ()
) {
_gauge->Pulse ();
}
_gauge->Pulse ();
}
-
- _needs_pulse = true;
}
private:
}
private:
@@
-101,7
+98,6
@@
private:
if (p >= 0) {
checked_set (_message, _job->status ());
_gauge->SetValue (p * 100);
if (p >= 0) {
checked_set (_message, _job->status ());
_gauge->SetValue (p * 100);
- _needs_pulse = false;
}
_table->Layout ();
}
_table->Layout ();
@@
-156,7
+152,6
@@
private:
wxButton* _cancel;
wxButton* _pause;
wxButton* _details;
wxButton* _cancel;
wxButton* _pause;
wxButton* _details;
- bool _needs_pulse;
};
/** Must be called in the GUI thread */
};
/** Must be called in the GUI thread */