mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-25 23:00:21 +01:00
2017-12-20 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up 'log in use" messages in rdlogedit(1) and rdclilogedit(1).
This commit is contained in:
@@ -649,10 +649,12 @@ int EditLog::exec()
|
||||
QHostAddress addr;
|
||||
|
||||
if(!edit_log_lock->tryLock(&username,&stationname,&addr)) {
|
||||
QMessageBox::warning(this,"RDLogEdit - "+tr("Log Locked"),
|
||||
tr("Log already being edited by")+" "+
|
||||
username+"@"+stationname+" ["+
|
||||
addr.toString()+"].");
|
||||
QString msg=tr("Log already being edited by")+" "+username+"@"+stationname;
|
||||
if(stationname!=addr.toString()) {
|
||||
msg+=" ["+addr.toString()+"]";
|
||||
}
|
||||
msg+=".";
|
||||
QMessageBox::warning(this,"RDLogEdit - "+tr("Log Locked"),msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user