mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Change preferences sub-dialogs to be modal
This solves the issue where the parent dialog is closed and then the child dialog is used. This is however only a partial fix: - Many other dialogs throughout the codebase do not currently have parent windows and need to be refactored. - Not all window managers respect modal so users can still trigger bugs. We can be more defensive against this but it requires more refactoring. Closes #2686
This commit is contained in:
@@ -903,7 +903,7 @@ fe_confirm (const char *message, void (*yesproc)(void *), void (*noproc)(void *)
|
||||
if (dcc->file)
|
||||
{
|
||||
char *filepath = g_build_filename (prefs.hex_dcc_dir, dcc->file, NULL);
|
||||
gtkutil_file_req (message, dcc_saveas_cb, ud, filepath, NULL,
|
||||
gtkutil_file_req (NULL, message, dcc_saveas_cb, ud, filepath, NULL,
|
||||
FRF_WRITE|FRF_NOASKOVERWRITE|FRF_FILTERISINITIAL);
|
||||
g_free (filepath);
|
||||
}
|
||||
@@ -1216,7 +1216,7 @@ fe_get_file (const char *title, char *initial,
|
||||
{
|
||||
/* OK: Call callback once per file, then once more with file=NULL. */
|
||||
/* CANCEL: Call callback once with file=NULL. */
|
||||
gtkutil_file_req (title, callback, userdata, initial, NULL, flags | FRF_FILTERISINITIAL);
|
||||
gtkutil_file_req (NULL, title, callback, userdata, initial, NULL, flags | FRF_FILTERISINITIAL);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user