mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Finish removal of informational_prefs
And make export-html build again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									0277d5aacc
								
							
						
					
					
						commit
						f6cd21ce5a
					
				
					 2 changed files with 13 additions and 12 deletions
				
			
		|  | @ -7,7 +7,7 @@ | |||
| #include "git-access.h" | ||||
| #include "libdivecomputer/version.h" | ||||
| 
 | ||||
| struct preferences prefs, informational_prefs, git_prefs; | ||||
| struct preferences prefs, git_prefs; | ||||
| struct preferences default_prefs = { | ||||
| 	.cloud_base_url = "https://cloud.subsurface-divelog.org/", | ||||
| #if defined(SUBSURFACE_MOBILE) | ||||
|  |  | |||
|  | @ -2,18 +2,19 @@ | |||
| 
 | ||||
| #include <QString> | ||||
| #include <QCommandLineParser> | ||||
| #include <QApplication> | ||||
| #include <QDebug> | ||||
| 
 | ||||
| #include "qt-gui.h" | ||||
| #include "qthelper.h" | ||||
| #include "dive.h" | ||||
| #include "save-html.h" | ||||
| #include "stdio.h" | ||||
| #include "core/qt-gui.h" | ||||
| #include "core/qthelper.h" | ||||
| #include "core/dive.h" | ||||
| #include "core/save-html.h" | ||||
| #include <stdio.h> | ||||
| #include "git2.h" | ||||
| #include "subsurfacestartup.h" | ||||
| #include "divelogexportlogic.h" | ||||
| #include "windowtitleupdate.h" | ||||
| #include "statistics.h" | ||||
| #include "core/subsurfacestartup.h" | ||||
| #include "core/divelogexportlogic.h" | ||||
| #include "core/windowtitleupdate.h" | ||||
| #include "core/statistics.h" | ||||
| 
 | ||||
| int main(int argc, char **argv) | ||||
| { | ||||
|  | @ -51,8 +52,8 @@ int main(int argc, char **argv) | |||
| 	// this should have set up the informational preferences - let's grab
 | ||||
| 	// the units from there
 | ||||
| 
 | ||||
| 	prefs.unit_system = informational_prefs.unit_system; | ||||
| 	prefs.units = informational_prefs.units; | ||||
| 	prefs.unit_system = git_prefs.unit_system; | ||||
| 	prefs.units = git_prefs.units; | ||||
| 
 | ||||
| 	// populate the statistics
 | ||||
| 	struct dive *d = get_dive(0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue