Skip to content
Snippets Groups Projects
Commit 1ed0c63a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

replace 'currentJobIndex' by 'currentIndex'

parent 54d6887f
Branches
Tags
1 merge request!2384all "set" classes now inherit VectorWC
......@@ -60,7 +60,7 @@ public:
void cancelJob(JobItem* job_item);
void removeJob(JobItem* job_item);
int currentJobIndex() const { return m_current_index; }
int currentIndex() const { return m_current_index; }
void setJobIndex(int index) { m_current_index = index; }
signals:
......
......@@ -257,7 +257,7 @@ void JobsListing::updateActions()
void JobsListing::restoreSelection()
{
int lastUsed = gDoc->jobs()->currentJobIndex();
int lastUsed = gDoc->jobs()->currentIndex();
if (lastUsed >= 0 && lastUsed < m_model->rowCount()) {
QModelIndex lastUsedIndex = m_model->index(lastUsed, 0, QModelIndex());
m_list_view->selectionModel()->select(lastUsedIndex, QItemSelectionModel::ClearAndSelect);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment