View | Details | Raw Unified | Return to bug 82815
Collapse All | Expand All

(-)files/patch-Toolkit.cxx (+31 lines)
Added Link Here
1
--- Toolkit.cxx.orig	Thu Jun 30 12:09:18 2005
2
+++ Toolkit.cxx	Thu Jun 30 12:10:07 2005
3
@@ -783,18 +783,19 @@
4
 		m_Config = new PConfig(m_ConfigFilePath, m_ConfigDefaultSection);
5
 	}
6
 
7
-	if (!m_extConfigFilePath)
8
+	if (!m_extConfigFilePath) {
9
 		PFile::Remove(m_extConfigFilePath);
10
 	
11
-	// generate a unique name
12
-	do {
13
-		m_extConfigFilePath = tmpdir + PDIR_SEPARATOR + "gnugk.ini-" + PString(PString::Unsigned, rand()%10000);
14
-		PTRACE(5, "GK\tTrying file name "<< m_extConfigFilePath << " for external config");
15
-	} while (PFile::Exists(m_extConfigFilePath));
16
+		// generate a unique name
17
+		do {
18
+			m_extConfigFilePath = tmpdir + PDIR_SEPARATOR + "gnugk.ini-" + PString(PString::Unsigned, rand()%10000);
19
+			PTRACE(5, "GK\tTrying file name "<< m_extConfigFilePath << " for external config");
20
+		} while (PFile::Exists(m_extConfigFilePath));
21
 
22
-	m_Config = new GatekeeperConfig(
23
-		m_extConfigFilePath, m_ConfigDefaultSection, m_Config
24
-		);
25
+		m_Config = new GatekeeperConfig(
26
+			m_extConfigFilePath, m_ConfigDefaultSection, m_Config
27
+			);
28
+	}
29
 }
30
 
31
 void Toolkit::ReloadSQLConfig()

Return to bug 82815