mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-16 17:41:16 +01:00
Insert Cart at the end of the log when no entry is selected
This commit is contained in:
@@ -686,13 +686,12 @@ void EditLog::insertCartButtonData()
|
|||||||
int id;
|
int id;
|
||||||
|
|
||||||
QListViewItem *item=SingleSelection();
|
QListViewItem *item=SingleSelection();
|
||||||
if(item==NULL) {
|
if(item==NULL || (line=item->text(13).toInt())<0) {
|
||||||
return;
|
line=edit_log_event->size();
|
||||||
}
|
id=END_MARKER_ID;
|
||||||
if((line=item->text(13).toInt())<0) {
|
} else {
|
||||||
line=0;
|
|
||||||
}
|
|
||||||
id=item->text(12).toInt();
|
id=item->text(12).toInt();
|
||||||
|
}
|
||||||
edit_log_event->insert(line,1);
|
edit_log_event->insert(line,1);
|
||||||
edit_log_event->logLine(line)->setTransType(edit_default_trans);
|
edit_log_event->logLine(line)->setTransType(edit_default_trans);
|
||||||
edit_log_event->logLine(line)->setFadeupGain(-3000);
|
edit_log_event->logLine(line)->setFadeupGain(-3000);
|
||||||
|
|||||||
Reference in New Issue
Block a user