Revert "More bug fixing."
This reverts commit ca84ba516fc892deaeafc18b23ad5a06822b29f5
This commit is contained in:
		
							parent
							
								
									1552f3f19c
								
							
						
					
					
						commit
						432069844a
					
				@ -2886,7 +2886,7 @@ void Courtroom::on_ooc_return_pressed()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      if (command.size() < 2)
 | 
					      if (command.size() < 2)
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        append_server_chatmessage("CLIENT", "You need to give a filename to save (extension not needed) and the courtroom status!" + caseslist.join(", "), "1");
 | 
					        append_server_chatmessage("CLIENT", "You need to give a filename to save (extension not needed) and the courtroom status!", "1");
 | 
				
			||||||
        ui_ooc_chat_message->clear();
 | 
					        ui_ooc_chat_message->clear();
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -2906,6 +2906,8 @@ void Courtroom::on_ooc_return_pressed()
 | 
				
			|||||||
      casefile.sync();
 | 
					      casefile.sync();
 | 
				
			||||||
      for(int i = local_evidence_list.size() - 1; i >= 0; i--)
 | 
					      for(int i = local_evidence_list.size() - 1; i >= 0; i--)
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
 | 
					           QString clean_evidence_dsc =  local_evidence_list[i].description.replace(QRegularExpression("<owner = ...>..."), "");
 | 
				
			||||||
 | 
					           clean_evidence_dsc = clean_evidence_dsc.replace(clean_evidence_dsc.lastIndexOf(">"), 1, "");
 | 
				
			||||||
           casefile.beginGroup(QString::number(i));
 | 
					           casefile.beginGroup(QString::number(i));
 | 
				
			||||||
           casefile.sync();
 | 
					           casefile.sync();
 | 
				
			||||||
           casefile.setValue("name",local_evidence_list[i].name);
 | 
					           casefile.setValue("name",local_evidence_list[i].name);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user