Skip to content
Snippets Groups Projects
Commit 1480d1d0 authored by jpbl's avatar jpbl
Browse files

digits are now the only characters to be able to choose a line if there's no current

parent 9564f55a
No related branches found
No related tags found
No related merge requests found
...@@ -196,10 +196,12 @@ PhoneLineManagerImpl::sendKey(Qt::Key c) ...@@ -196,10 +196,12 @@ PhoneLineManagerImpl::sendKey(Qt::Key c)
PhoneLine *selectedLine = getCurrentLine(); PhoneLine *selectedLine = getCurrentLine();
if(!selectedLine) { // Only digits that select a line if there's
// no current line.
if (!selectedLine && QChar(c).isDigit()) {
selectedLine = selectNextAvailableLine(); selectedLine = selectNextAvailableLine();
} }
if(selectedLine) { if(selectedLine) {
PhoneLineLocker guard(selectedLine); PhoneLineLocker guard(selectedLine);
selectedLine->sendKey(c); selectedLine->sendKey(c);
......
...@@ -45,9 +45,8 @@ TCPSessionIO::~TCPSessionIO() ...@@ -45,9 +45,8 @@ TCPSessionIO::~TCPSessionIO()
void void
TCPSessionIO::error() TCPSessionIO::error()
{ {
_debug("TCPSessionIO: %s. %d\n", _debug("TCPSessionIO: %s. \n",
mSocket->errorString().toStdString().c_str(), mSocket->errorString().toStdString().c_str());
mSocket->state());
mSocket->close(); mSocket->close();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment