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
Branches
Tags
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment