mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[keyboard] Fixed condition bug
This commit is contained in:
parent
19b1fb3358
commit
0dd027af90
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ xkbmap_query_grp_option()
|
|||
{
|
||||
outputLine = setxkbmapQuery.readLine();
|
||||
}
|
||||
while( !setxkbmapQuery.atEnd() || !outputLine.startsWith("options:") );
|
||||
while( setxkbmapQuery.canReadLine() && !outputLine.startsWith("options:") );
|
||||
|
||||
if( !outputLine.startsWith("options:") )
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ AdditionalLayoutInfo Config::getAdditionalLayoutInfo( const QString &layout )
|
|||
{
|
||||
tableLine = layoutTable.readLine();
|
||||
}
|
||||
while( !layoutTable.atEnd() || !tableLine.startsWith( layout ) );
|
||||
while( layoutTable.canReadLine() && !tableLine.startsWith( layout ) );
|
||||
|
||||
if( !tableLine.startsWith( layout ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue