Prevent title from being empty when following an anchor
Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
		
							parent
							
								
									3cc5f87db8
								
							
						
					
					
						commit
						618c3dfd52
					
				
							
								
								
									
										6
									
								
								surf.c
								
								
								
								
							
							
						
						
									
										6
									
								
								surf.c
								
								
								
								
							| 
						 | 
				
			
			@ -1179,8 +1179,10 @@ stop(Client *c, const Arg *arg) {
 | 
			
		|||
static void
 | 
			
		||||
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
 | 
			
		||||
	const gchar *t = webkit_web_view_get_title(view);
 | 
			
		||||
	c->title = copystr(&c->title, t);
 | 
			
		||||
	updatetitle(c);
 | 
			
		||||
	if (t) {
 | 
			
		||||
		c->title = copystr(&c->title, t);
 | 
			
		||||
		updatetitle(c);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue