She and Charlie have had a romantic relationship of sorts throughout the series.
She is having problems accepting her role as a professor, especially in the view that she was a student only recently at the same university where she now holds a faculty position.