Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Requêtes de fusion
!148
Klkt fix
Code
Examiner les modifications
Extraire la branche
Télécharger
Correctifs
Diff brut
Étendre la barre latérale
Fusionnées
Klkt fix
klkt-fix
vers
master
Vue d'ensemble
0
Validations
2
Pipelines
0
Modifications
1
Fusionnées
Kubat
a demandé de fusionner
klkt-fix
vers
master
Il y a 4 ans
Vue d'ensemble
0
Validations
2
Pipelines
0
Modifications
1
Hotfix for klkt
don't need to timeout when commands fails in doCommand
fix build on new version of qt (deprecated function)
0
0
Rapports de requête de fusion
Comparer
master
master (base)
et
dernière version
dernière version
152b3f76
2 validations,
Il y a 4 ans
1 file
+
7
−
6
En ligne
Comparer les modifications
Côte à côte
En ligne
Afficher les modifications des espaces
Afficher un fichier à la fois
src/klkt/klkt.hpp
+
7
−
6
Afficher le fichier @ 152b3f76
Modifier dans l'éditeur de fichier unique
Ouvrir dans Web EDI
Afficher le fichier complet
@@ -297,8 +297,8 @@ private slots:
for
(
auto
&
line
:
lines
)
{
return_position
=
line
.
length
()
+
1
;
m_pending_data
=
m_pending_data
.
right
(
m_pending_data
.
length
()
-
return_position
);
if
(
line
==
"OK"
)
{
m_pending_data
=
m_pending_data
.
right
(
m_pending_data
.
length
()
-
return_position
);
if
(
line
==
"OK"
||
line
.
left
(
3
)
==
"ACK"
)
{
m_sock
.
close
();
return
;
}
@@ -328,8 +328,8 @@ private slots:
for
(
const
auto
&
line
:
lines
)
{
return_position
=
line
.
length
()
+
1
;
m_pending_data
=
m_pending_data
.
right
(
m_pending_data
.
length
()
-
return_position
);
if
(
line
==
"OK"
)
{
m_pending_data
=
m_pending_data
.
right
(
m_pending_data
.
length
()
-
return_position
);
if
(
line
==
"OK"
||
line
.
left
(
3
)
==
"ACK"
)
{
/* Read the current song if needed */
if
(
m_state
==
"play"
)
{
QWidget
::
disconnect
(
m_connect_read
);
@@ -408,7 +408,7 @@ private:
connect
(
&
m_sock
,
&
Socket
::
readyRead
,
this
,
[
&
]()
{
QStringList
lines
=
QTextCodec
::
codecForMib
(
UTF8_MIB
)
->
toUnicode
(
m_sock
.
readAll
()).
split
(
"
\n
"
);
for
(
auto
&
line
:
lines
)
{
if
(
line
==
"OK"
)
{
if
(
line
==
"OK"
||
line
.
left
(
3
)
==
"ACK"
)
{
m_sock
.
close
();
emit
finished
();
return
;
@@ -660,7 +660,8 @@ public:
void
restart
(
void
)
const
{
sendNotification
(
"Klkt restart"
,
"Klkt will restart"
,
Urgency
::
LOW
);
QProcess
::
startDetached
(
QApplication
::
applicationFilePath
());
QStringList
args
{
QApplication
::
applicationFilePath
()};
QProcess
::
startDetached
(
args
[
0
],
args
);
::
exit
(
EXIT_SUCCESS
);
}
};
Chargement en cours