Commit 8119515c authored by Robert Knight's avatar Robert Knight
Browse files

Copy Input Dialog: Fix 'Select All' / 'Deselect All' buttons.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796546
parent 3ddffbd2
......@@ -106,7 +106,7 @@ void CopyInputDialog::setSelectionChecked(bool checked)
void CopyInputDialog::setRowChecked(int row, bool checked)
{
QAbstractItemModel* model = _ui->sessionList->model();
QModelIndex index = model->index(row,0);
QModelIndex index = model->index(row,_model->checkColumn());
if (checked)
model->setData(index,(int)Qt::Checked,Qt::CheckStateRole);
else
......
......@@ -73,6 +73,7 @@ public:
CheckableSessionModel(QObject* parent);
void setCheckColumn(int column);
int checkColumn() const;
void setCheckable(Session* session, bool checkable);
......@@ -91,6 +92,8 @@ private:
QSet<Session*> _fixedSessions;
int _checkColumn;
};
inline int CheckableSessionModel::checkColumn() const
{ return _checkColumn; }
}
......
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