mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Filter: remove diveSiteAdded signal of MainTab
Signals can be useful. In this case, a simple function call does it. Thus, remove the signal. It can be readded later at an more appropriate place. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									554a7aaba4
								
							
						
					
					
						commit
						b1fb578eb9
					
				
					 2 changed files with 1 additions and 3 deletions
				
			
		|  | @ -211,7 +211,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), | |||
| 
 | ||||
| 	connect(ui.diveNotesMessage, &KMessageWidget::showAnimationFinished, | ||||
| 					ui.location, &DiveLocationLineEdit::fixPopupPosition); | ||||
| 	connect(this, SIGNAL(diveSiteAdded(const QString &)), LocationFilterModel::instance(), SLOT(addName(const QString &))); | ||||
| 
 | ||||
| 	// enable URL clickability in notes:
 | ||||
| 	new TextHyperlinkEventFilter(ui.notes);//destroyed when ui.notes is destroyed
 | ||||
|  | @ -739,7 +738,7 @@ uint32_t MainTab::updateDiveSite(uint32_t pickedUuid, int divenr) | |||
| 		QString name = ui.location->text().isEmpty() ? tr("New dive site") : ui.location->text(); | ||||
| 		pickedUuid = create_dive_site(qPrintable(name), displayed_dive.when); | ||||
| 		createdNewDive = true; | ||||
| 		emit diveSiteAdded(name); | ||||
| 		LocationFilterModel::instance()->addName(name); | ||||
| 	} | ||||
| 
 | ||||
| 	newDs = get_dive_site_by_uuid(pickedUuid); | ||||
|  |  | |||
|  | @ -60,7 +60,6 @@ signals: | |||
| 	void addDiveFinished(); | ||||
| 	void dateTimeChanged(); | ||||
| 	void diveSiteChanged(struct dive_site * ds); | ||||
| 	void diveSiteAdded(const QString &); | ||||
| public | ||||
| slots: | ||||
| 	void addCylinder_clicked(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue