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