Skip to content
Permalink
Browse files

Paste rule at the bottom if no selection

  • Loading branch information
NathanW2 committed Sep 14, 2013
1 parent 80a1341 commit b7751766d023b8b1994afca9b0a58895efca5109
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
@@ -421,10 +421,11 @@ void QgsRuleBasedRendererV2Widget::paste()
{
const QMimeData* mime = QApplication::clipboard()->mimeData();
QModelIndexList indexlist = viewRules->selectionModel()->selectedRows();
QModelIndex index;
if ( indexlist.isEmpty() )
return;

QModelIndex index = indexlist.first();
index = mModel->index(mModel->rowCount(), 0);
else
index = indexlist.first();
mModel->dropMimeData( mime, Qt::CopyAction, index.row(), index.column(), index.parent() );
}

0 comments on commit b775176

Please sign in to comment.
You can’t perform that action at this time.