mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Optional trace file located in temp directory
The existing trace file location created when the CMake option WSJT_QDEBUG_TO_FILE is ON is not usable with a Linux package installed in /usr. Moved location to the temporary directory as <APPNAME>_trace.log Merged from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4475 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									024c0eb616
								
							
						
					
					
						commit
						af8c7af297
					
				
							
								
								
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							| @ -160,7 +160,7 @@ int main(int argc, char *argv[]) | ||||
|       QSettings settings(config_path.absoluteFilePath (a.applicationName () + ".ini"), QSettings::IniFormat); | ||||
| #if WSJT_QDEBUG_TO_FILE | ||||
|       // // open a trace file
 | ||||
|       TraceFile trace_file {QDir {QApplication::applicationDirPath ()}.absoluteFilePath ("wsjtx_trace.log")}; | ||||
|       TraceFile trace_file {QDir {QStandardPaths::writableLocation (QStandardPaths::TempLocation)}.absoluteFilePath (a.applicationName () + "_trace.log")}; | ||||
| 
 | ||||
|       // announce to trace file
 | ||||
|       qDebug () << program_title (revision ()) + " - Program startup"; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user