Merge lp:~kalikiana/midori/debug-while-running into lp:midori

Proposed by Cris Dywan
Status: Merged
Approved by: Paweł Forysiuk
Approved revision: 6160
Merged at revision: 6162
Proposed branch: lp:~kalikiana/midori/debug-while-running
Merge into: lp:midori
Diff against target: 14 lines (+4/-0)
1 file modified
midori/midori-frontend.c (+4/-0)
To merge this branch: bzr merge lp:~kalikiana/midori/debug-while-running
Reviewer Review Type Date Requested Status
Paweł Forysiuk Approve
Review via email: mp+164618@code.launchpad.net

Description of the change

MIDORI_DEBUG on a running instance doesn't work, so it needs to print a warning message.

To post a comment you must log in.
Revision history for this message
Paweł Forysiuk (tuxator) wrote :

Looks and works fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'midori/midori-frontend.c'
--- midori/midori-frontend.c 2013-05-19 09:33:02 +0000
+++ midori/midori-frontend.c 2013-05-19 12:10:33 +0000
@@ -442,6 +442,10 @@
442 MidoriApp* app = midori_app_new (nickname);442 MidoriApp* app = midori_app_new (nickname);
443 if (midori_app_instance_is_running (app))443 if (midori_app_instance_is_running (app))
444 {444 {
445 /* midori_debug makes no sense on a running instance */
446 if (g_getenv ("MIDORI_DEBUG"))
447 g_warning ("MIDORI_DEBUG only works for a new instance");
448
445 /* It makes no sense to show a crash dialog while running */449 /* It makes no sense to show a crash dialog while running */
446 if (!diagnostic_dialog)450 if (!diagnostic_dialog)
447 {451 {

Subscribers

People subscribed via source and target branches

to all changes: