aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAlertSheets.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
committerMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
commit5357fd1375d19a6c5de96293b3899f430422a3c0 (patch)
tree18c0ca79b6be40aecbd8200ceedd9111a346bb63 /Source/SPAlertSheets.h
parente12e3e86f26b47a51c10940bca1102326d47bf82 (diff)
downloadsequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.gz
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.bz2
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.zip
Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()
This should also eliminate a few use-after-free crashes
Diffstat (limited to 'Source/SPAlertSheets.h')
-rw-r--r--Source/SPAlertSheets.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPAlertSheets.h b/Source/SPAlertSheets.h
index 99e64e59..c92b635d 100644
--- a/Source/SPAlertSheets.h
+++ b/Source/SPAlertSheets.h
@@ -59,6 +59,12 @@ void SPBeginAlertSheet(
void SPOnewayAlertSheet(
NSString *title,
+ NSWindow *docWindow,
+ NSString *msg
+);
+
+void SPOnewayAlertSheetWithStyle(
+ NSString *title,
NSString *defaultButton,
NSWindow *docWindow,
NSString *msg,