Skip to content

Commit bc0c3b5

Browse files
authored
Merge pull request #1111 from IKhonakhbeeva/input
Retry input instead of error in case of empty input [AUTOZIP]
2 parents d826efa + ed85cf3 commit bc0c3b5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

qrtranslations/fr/qrutils_fr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
<translation type="obsolete">Une pause de flux de contrôle détecté, arrêt en cours</translation>
286286
</message>
287287
<message>
288-
<location line="+35"/>
288+
<location line="+36"/>
289289
<source>No outgoing links, please connect this block to something or use Final Node to end program</source>
290290
<translation type="unfinished">Aucun lien sortant, s&apos;il vous plait connectez ce bloc à un autre ou bien utilisez un nœud final pour terminer le programme</translation>
291291
</message>
@@ -295,7 +295,7 @@
295295
<translation type="unfinished"></translation>
296296
</message>
297297
<message>
298-
<location line="-62"/>
298+
<location line="-63"/>
299299
<source>Outgoing link is not connected</source>
300300
<translation type="unfinished">Le lien sortant n&apos;est pas connecté</translation>
301301
</message>

qrtranslations/ru/qrutils_ru.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
<translation>Не указан следующий блок</translation>
374374
</message>
375375
<message>
376-
<location line="+35"/>
376+
<location line="+36"/>
377377
<source>No outgoing links, please connect this block to something or use Final Node to end program</source>
378378
<translation>Нет исходящих связей. Пожалуйста, подключите этот блок к чему-нибудь или используйте блок &quot;Конец&quot;, чтобы завершить выполнение программы</translation>
379379
</message>
@@ -383,7 +383,7 @@
383383
<translation>От блока ввода должно исходить не более ДВУХ связей</translation>
384384
</message>
385385
<message>
386-
<location line="-62"/>
386+
<location line="-63"/>
387387
<source>Outgoing link is not connected</source>
388388
<translation>Исходящая связь ни к чему не подключена</translation>
389389
</message>

qrutils/interpreter/blocks/inputBlock.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ void InputBlock::onValueSelected(const QString &text) {
102102

103103
void InputBlock::onRejected() {
104104
if (mCancelBlockId.isNull()) {
105-
error(tr("You must input some value!"));
105+
warning(tr("You must input some value!"));
106+
emit done(id());
106107
} else {
107108
emit done(mCancelBlockId);
108109
}

0 commit comments

Comments
 (0)