|  | @@ -45,6 +45,11 @@ void PilotsWidget::tableView_selectionChanged()//const QItemSelection &index, co
 | 
	
		
			
				|  |  |      if(selectedPilots.length() == 1) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          NewPilotDialog* np = new NewPilotDialog(selectedPilots.first(), this);
 | 
	
		
			
				|  |  | +        using namespace experimental;
 | 
	
		
			
				|  |  | +        QObject::connect(DB(), &DataBase::commitSuccessful,
 | 
	
		
			
				|  |  | +                         np,   &NewPilotDialog::onCommitSuccessful);
 | 
	
		
			
				|  |  | +        QObject::connect(DB(), &DataBase::commitUnsuccessful,
 | 
	
		
			
				|  |  | +                         np,   &NewPilotDialog::onCommitUnsuccessful);
 | 
	
		
			
				|  |  |          connect(np, SIGNAL(accepted()), this, SLOT(pilot_editing_finished()));
 | 
	
		
			
				|  |  |          connect(np, SIGNAL(rejected()), this, SLOT(pilot_editing_finished()));
 | 
	
		
			
				|  |  |          np->setWindowFlag(Qt::Widget);
 | 
	
	
		
			
				|  | @@ -67,6 +72,11 @@ void PilotsWidget::on_newButton_clicked()
 | 
	
		
			
				|  |  |      np->setAttribute(Qt::WA_DeleteOnClose);
 | 
	
		
			
				|  |  |      connect(np, SIGNAL(accepted()), this, SLOT(pilot_editing_finished()));
 | 
	
		
			
				|  |  |      connect(np, SIGNAL(rejected()), this, SLOT(pilot_editing_finished()));
 | 
	
		
			
				|  |  | +    using namespace experimental;
 | 
	
		
			
				|  |  | +    QObject::connect(DB(), &DataBase::commitSuccessful,
 | 
	
		
			
				|  |  | +                     np,   &NewPilotDialog::onCommitSuccessful);
 | 
	
		
			
				|  |  | +    QObject::connect(DB(), &DataBase::commitUnsuccessful,
 | 
	
		
			
				|  |  | +                     np,   &NewPilotDialog::onCommitUnsuccessful);
 | 
	
		
			
				|  |  |      np->exec();
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 |