Allow empty request queue.
This commit is contained in:
parent
dd31ee1df5
commit
2b15c64ebf
@ -50,7 +50,7 @@ void GoogleWebTranslator::loadFinished(bool ok) {
|
||||
return;
|
||||
}
|
||||
|
||||
Q_ASSERT (!queue_.isEmpty());
|
||||
if (!queue_.isEmpty()) {
|
||||
ProcessingItem item = queue_.front();
|
||||
queue_.pop_front();
|
||||
if (ok) {
|
||||
@ -64,6 +64,7 @@ void GoogleWebTranslator::loadFinished(bool ok) {
|
||||
else {
|
||||
emit translated (item, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (!queue_.isEmpty()) {
|
||||
load (queue_.front());
|
||||
|
Loading…
Reference in New Issue
Block a user