mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-12 19:06:36 +00:00
Fix crash when no display output is enabled
This commit is contained in:
parent
7cf80d5948
commit
80e063ef80
@ -172,8 +172,9 @@ static inline conky::display_output_base *display_output() {
|
|||||||
if (conky::current_display_outputs.size())
|
if (conky::current_display_outputs.size())
|
||||||
return conky::current_display_outputs[0];
|
return conky::current_display_outputs[0];
|
||||||
// XXX; not really what intended yet...
|
// XXX; not really what intended yet...
|
||||||
return conky::active_display_outputs[0];
|
if (conky::active_display_outputs.size())
|
||||||
// return nullptr;
|
return conky::active_display_outputs[0];
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void unset_display_output() {
|
static inline void unset_display_output() {
|
||||||
|
Loading…
Reference in New Issue
Block a user