Skip to content

Commit

Permalink
Fixed a typo in the regex to decide if a pipe can use Qt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Hernando committed Nov 3, 2015
1 parent 30c6a69 commit 97bbeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eq/pipe.cpp
Expand Up @@ -378,7 +378,7 @@ bool Pipe::isWindowSystemAvailable( const std::string& name ) const
if( !app || !app->primaryScreen() )
return false; // Qt won't be able to access anything anyway

QRegularExpression regex( "^[a-z]*\\:([0-9])+(\\.[0-9]+)?$" );
QRegularExpression regex( "^[a-z]*\\:([0-9]+)(\\.[0-9]+)?$" );
QRegularExpressionMatch match =
regex.match( getenv( "DISPLAY" ) ? getenv( "DISPLAY" ) : "" );
available = match.captured( 1 ) == QString::number( getPort(), 10 );
Expand Down

0 comments on commit 97bbeed

Please sign in to comment.