Commit 1480d1d0 authored by jpbl's avatar jpbl

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

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