diff options
Diffstat (limited to 'plugins/DbEditorPP/src/exportimport.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/exportimport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp index 4ae33f26d1..8408a23215 100644 --- a/plugins/DbEditorPP/src/exportimport.cpp +++ b/plugins/DbEditorPP/src/exportimport.cpp @@ -153,7 +153,7 @@ void exportDB(MCONTACT hContact, const char *module) if (Openfile(fileName, (hContact == INVALID_CONTACT_ID) ? nullptr : module, MAX_PATH)) {
FILE *file = _wfopen(fileName, L"wt");
if (!file) {
- msg(TranslateT("Couldn't open file for writing"));
+ g_pMainWindow->msg(TranslateT("Couldn't open file for writing"));
return;
}
@@ -331,7 +331,7 @@ void importSettings(MCONTACT hContact, char *utf8) if (end = strpbrk(&importstring[i + 2], "]")) {
*end = '\0';
mir_strcpy(module, &importstring[i + 2]);
- deleteModule(hContact, module, 0);
+ deleteModule(0, hContact, module, 0);
}
}
else if (strchr(&importstring[i], '=') && module[0]) { // get the setting
@@ -445,9 +445,9 @@ INT_PTR CALLBACK ImportDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPara return 0;
}
-void ImportSettingsMenuItem(MCONTACT hContact)
+void CMainDlg::ImportSettingsMenuItem(MCONTACT hContact)
{
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_IMPORT), hwnd2mainWindow, ImportDlgProc, hContact);
+ CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_IMPORT), m_hwnd, ImportDlgProc, hContact);
}
int Openfile2Import(wchar_t *outputFiles, int maxlen)
|