X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fdolcon.c;h=356fc62dbc57c8b66ab3521e483acc0c35b463e7;hb=7a00b8b0d81ccb8dc60b3482978b0aa5e7ddfc55;hp=60374f3596a5659cbbba868a21e6f327dd900537;hpb=0388d7345b17aeb284ad7d6276a2f672ade6ada7;p=doldaconnect.git diff --git a/clients/gtk2/dolcon.c b/clients/gtk2/dolcon.c index 60374f3..356fc62 100644 --- a/clients/gtk2/dolcon.c +++ b/clients/gtk2/dolcon.c @@ -829,7 +829,7 @@ void logincallback(int err, wchar_t *reason, void *data) switch(err) { case DC_LOGIN_ERR_SUCCESS: - dc_queuecmd(NULL, NULL, L"notify", L"all", L"on", NULL); + dc_queuecmd(NULL, NULL, L"notify", L"all", L"on", L"fn:peer", L"off", NULL); dc_getfnlistasync(getfnlistcallback, NULL); dc_gettrlistasync(gettrlistcallback, NULL); updatesbar("Authenticated"); @@ -1165,9 +1165,8 @@ void handleresps(void) if((buf = icwcstombs(ires->argv[1].val.str, "UTF-8")) != NULL) { p = buf; - /* XXX: Too NMDC-specific! */ - if(strrchr(p, '\\') != NULL) - p = strrchr(p, '\\') + 1; + if(strrchr(p, '/') != NULL) + p = strrchr(p, '/') + 1; gtk_tree_store_set(srchmodel, &piter, 3, p, -1); free(buf); }