mirror of https://github.com/procxx/kepka.git
Handle all enum values
This commit is contained in:
parent
b25df92d35
commit
59ee61a90d
|
@ -91,9 +91,8 @@ void DownloadPathState::paintEvent(QPaintEvent *e) {
|
||||||
case State::Clearing: return lang(lng_download_path_clearing);
|
case State::Clearing: return lang(lng_download_path_clearing);
|
||||||
case State::Cleared: return lang(lng_download_path_cleared);
|
case State::Cleared: return lang(lng_download_path_cleared);
|
||||||
case State::ClearFailed: return lang(lng_download_path_clear_failed);
|
case State::ClearFailed: return lang(lng_download_path_clear_failed);
|
||||||
case State::Empty: case State::Exists: assert(false); // temp
|
default: return QString();
|
||||||
}
|
}
|
||||||
return QString();
|
|
||||||
})();
|
})();
|
||||||
if (!text.isEmpty()) {
|
if (!text.isEmpty()) {
|
||||||
p.setFont(st::linkFont);
|
p.setFont(st::linkFont);
|
||||||
|
|
Loading…
Reference in New Issue